🤖feat: add multiple known endpoints (#1917)

* feat: add known endpoints

* docs: add known endpoints

* update ai_endpoints.md

remove the groq icon from the example

* Update ai_endpoints.md

---------

Co-authored-by: Danny Avila <messagedaniel@protonmail.com>
This commit is contained in:
Fuegovic 2024-02-28 08:46:21 -05:00 committed by GitHub
parent 156abe2fca
commit 53ae2d7bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 250 additions and 8 deletions

View file

@ -171,11 +171,16 @@ export const configSchema = z.object({
export type TCustomConfig = z.infer<typeof configSchema>;
export enum KnownEndpoints {
mistral = 'mistral',
openrouter = 'openrouter',
groq = 'groq',
}
export const KnownEndpoints = {
mistral: 'mistral',
openrouter: 'openrouter',
groq: 'groq',
anyscale: 'anyscale',
fireworks: 'fireworks',
ollama: 'ollama',
perplexity: 'perplexity',
'together.ai': 'together.ai',
} as const;
export const defaultEndpoints: EModelEndpoint[] = [
EModelEndpoint.openAI,