forked from Layoric/MistralChatGPT
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"author": "Jing Hua <[email protected]>", | ||
"description": "Play and chat smarter with BetterChatGPT - an amazing open-source web app with a better UI for exploring OpenAI's ChatGPT API!", | ||
"scripts": { | ||
"dev": "vite", | ||
"dev": "vite --host", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"electron": "concurrently -k \"BROWSER=none yarn dev\" \"wait-on tcp:5173 && electron .\"", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
export const officialAPIEndpoint = 'https://api.mistral.ai/v1/chat/completions'; | ||
export const codestralAPIEndpoint = '/codestral/chat/completions'; | ||
export const defaultAPIEndpoint = | ||
import.meta.env.VITE_DEFAULT_API_ENDPOINT || '/v1/chat/completions'; | ||
export const codestralFullAPIEndpoint = 'https://codestral.mistral.ai/v1/chat/completions'; | ||
export const defaultAPIEndpoint = import.meta.env.VITE_DEFAULT_API_ENDPOINT || '/v1/chat/completions'; | ||
export const codestralAPIEndpoint = import.meta.env.VITE_CODESTRAL_API_ENDPOINT || '/codestral/v1/chat/completions'; | ||
|
||
export const availableEndpoints = [ | ||
defaultAPIEndpoint, | ||
officialAPIEndpoint, | ||
codestralAPIEndpoint, | ||
codestralFullAPIEndpoint | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters