-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ts.example
43 lines (30 loc) · 2.06 KB
/
config.ts.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// The following configuration is required:
// By configuring the endpoints below, you can use a server with OpenAI compatible REST API:
export const completionsApiKey = "<The API Key used for /completions endpoint>";
//export const completionsApiUrl = "http://localhost:5173/mistral/"; // Proxy for https://api.mistral.ai/v1/ due to CORS issues, see vite.config.ts
//export const completionsApiUrl = "http://localhost:8080/v1"; // LocalAI server, which needs to be started with --cors
export const completionsApiUrl = "https://api.openai.com/v1";
//export const modelName = "mistral-large-latest";
export const modelName = "gpt-4o";
export const useTools = true;
// NOTE: All the above must currently be provided, as it is imported in the code and used as a fallback.
// However, from the Assistant settings, it is possible to configure any number of models and LLM providers and switch between them.
export const speechApiKey = "<The API Key used for the TTS endpoint>";
export const speechApiUrl = "https://api.openai.com/v1";
export const transcriptionApiKey = "<The API Key used for the SST endpoint>";
export const transcriptionApiUrl = "https://api.openai.com/v1";
export const transcriptionModel = "whisper-1";
// All the following API keys are optional, and are only required if you want to use the corresponding features.
// Your picovoice.ai Access Key:
export const PicoVoiceAccessKey = "";
// Your openweathermap.org API Key:
export const OpenWeatherMapApiKey = "";
// Your newsapi.org API key:
export const NewsApiOrgKey = "";
export const GoogleApiKey = "<Your googleapis.com API key>";
export const GoogleClientId = "XXX.apps.googleusercontent.com";
export const GoogleClientSecret = "<Your OAuth2 Client Secret/Key>";
export const GoogleCustomSearchEngineId = "<ID of your custom google search engine configured for global search>";
// export const GoogleProjectId = "<Your Google Cloud Console project ID>"; // Needed for Google Vertex AI API (Gemini Pro)
export const SpotifyClientId = "<Your Spotify Client ID>";
export const MicrosoftClientId = "<Your Azure App Client ID>";