Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: support Mistral models via mistral API #378

Open
rshouker opened this issue Dec 17, 2023 · 1 comment
Open

Feature Request: support Mistral models via mistral API #378

rshouker opened this issue Dec 17, 2023 · 1 comment

Comments

@rshouker
Copy link

The Minstral API seems to be based on the OpenAI API. If you could add Minstral API Key, and connect to the Minstral endpoint, and maybe adjust some parameters, that would be great.
Thanks.

@gartu
Copy link

gartu commented Feb 15, 2024

Yes, it would be great =)
In the meantime, here is some magic (brute-force) sed for a previous version :

/var/www/chatgpt-web/dist/assets#
cp index-79b864b7.js index-79b864b7-saved.js
sed -i 's/api.openai.com/api.mistral.ai/g' index-79b864b7.js
sed -i 's/gpt-3.5-turbo-0301/mistral-small/g' index-79b864b7.js
sed -i 's/gpt-3.5-turbo-0613/mistral-medium/g' index-79b864b7.js
sed -i 's/gpt-3.5-turbo/mistral-tiny/g' index-79b864b7.js
sed -i 's/ChatGPT-web/Mistral-web/g' index-79b864b7.js
sed -i 's/,n:b,/,/g' index-79b864b7.js
sed -i 's/,n:1,/,/g' index-79b864b7.js
sed -i 's/I.streaming/false/g' index-79b864b7.js
sed -i 's/:G.stream,/:false,/g' index-79b864b7.js
/var/www/chatgpt-web/dist#
sed -i 's/ChatGPT-web/Mistral-web/g' index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants