From a25e65735853f2ceffb8194f9b42a486556219f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Rodr=C3=ADguez?= Date: Mon, 16 Dec 2024 10:10:04 +0100 Subject: [PATCH] Update model list 15/12/24 (#723) --- .../src/services/ai/providers/models/index.ts | 58 +++++++++++++++---- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/packages/core/src/services/ai/providers/models/index.ts b/packages/core/src/services/ai/providers/models/index.ts index 177fbb548..14cc74acc 100644 --- a/packages/core/src/services/ai/providers/models/index.ts +++ b/packages/core/src/services/ai/providers/models/index.ts @@ -12,8 +12,11 @@ export enum Providers { export const DEFAULT_PROVIDER_UNSUPPORTED_MODELS = [ 'gpt-4o', + 'gpt-4o-2024-11-20', 'gpt-4o-2024-08-06', 'gpt-4o-2024-05-13', + 'gpt-4o-audio-preview', + 'gpt-4o-audio-preview-2024-10-01', 'o1-preview', 'o1-preview-2024-09-12', ] @@ -30,11 +33,14 @@ const OPEN_AI_MODELS = { 'gpt-4-turbo': 'gpt-4-turbo', 'gpt-4-turbo-2024-04-09': 'gpt-4-turbo-2024-04-09', 'gpt-4o': 'gpt-4o', + 'gpt-4o-2024-11-20': 'gpt-4o-2024-11-20', 'gpt-4o-2024-05-13': 'gpt-4o-2024-05-13', 'gpt-4o-2024-08-06': 'gpt-4o-2024-08-06', 'gpt-4o-mini-2024-07-18': 'gpt-4o-mini-2024-07-18', + 'gpt-4o-audio-preview': 'gpt-4o-audio-preview', + 'gpt-4o-audio-preview-2024-10-01': 'gpt-4o-audio-preview-2024-10-01', 'o1-mini': 'o1-mini', - 'o1-mini-2024-09-12 ': 'o1-mini-2024-09-12', + 'o1-mini-2024-09-12': 'o1-mini-2024-09-12', 'o1-preview': 'o1-preview', 'o1-preview-2024-09-12': 'o1-preview-2024-09-12', } @@ -47,19 +53,25 @@ export const PROVIDER_MODELS: Partial< 'claude-3-5-sonnet-latest': 'claude-3-5-sonnet-latest', 'claude-3-5-sonnet-20241022': 'claude-3-5-sonnet-20241022', 'claude-3-5-sonnet-20240620': 'claude-3-5-sonnet-20240620', - 'claude-3-sonnet-20240229': 'claude-3-sonnet-20240229', + 'claude-3-5-haiku-latest': 'claude-3-5-haiku-latest', + 'claude-3-5-haiku-20241022': 'claude-3-5-haiku-20241022', 'claude-3-opus-latest': 'claude-3-pous-latest', 'claude-3-opus-20240229': 'claude-3-opus-20240229', + 'claude-3-sonnet-latest': 'claude-3-sonnet-latest', + 'claude-3-sonnet-20240229': 'claude-3-sonnet-20240229', 'claude-3-haiku-latest': 'claude-3-haiku-latest', 'claude-3-haiku-20240307': 'claude-3-haiku-20240307', 'claude-2.1': 'claude-2.1', }, [Providers.Groq]: { - 'gemma-7b-it': 'gemma-7b-it', - 'gemma2-9b-it': 'gemma2-9b-it', - // 'llama-3.1-405b-reasoning': N/A - // 'llama-3.1-70b-versatile': N/A - // 'llama-3.1-8b-instant': N/A + 'llama-3.3-70b-specdec': 'llama-3.3-70b-specdec', + 'llama-3.3-70b-versatile': 'llama-3.3-70b-versatile', + 'llama-3.2-1b-preview': 'llama-3.2-1b-preview', + 'llama-3.2-3b-preview': 'llama-3.2-3b-preview', + 'llama-3.2-11b-vision-preview': 'llama-3.2-11b-vision-preview', + 'llama-3.2-90b-vision-preview': 'llama-3.2-90b-vision-preview', + 'llama-3.1-8b-instant': 'llama-3.1-8b-instant', + 'llama-3.1-70b-specdec': 'llama-3.1-70b-specdec', 'llama3-70b-8192': 'llama3-70b-8192', 'llama3-8b-8192': 'llama3-8b-8192', 'llama-guard-3-8b': 'llama-guard-3-8b', @@ -68,23 +80,49 @@ export const PROVIDER_MODELS: Partial< 'llama3-groq-8b-8192-tool-use-preview': 'llama3-groq-8b-8192-tool-use-preview', 'mixtral-8x7b-32768': 'mixtral-8x7b-32768', + 'gemma-7b-it': 'gemma-7b-it', + 'gemma2-9b-it': 'gemma2-9b-it', }, [Providers.Mistral]: { - 'open-mistral-nemo-2407': 'open-mistral-nemo-2407', + 'ministral-3b-latest': 'ministral-3b-latest', + 'ministral-3b-2410': 'ministral-3b-2410', + 'ministral-8b-latest': 'ministral-8b-latest', + 'ministral-8b-2410': 'ministral-8b-2410', + 'mistral-small-latest': 'mistral-small-latest', + 'mistral-small-2409': 'mistral-small-2409', + 'mistral-medium-latest': 'mistral-medium-latest', + 'mistral-medium-2312': 'mistral-medium-2312', + 'mistral-large-latest': 'mistral-large-latest', + 'mistral-large-2411': 'mistral-large-2411', 'mistral-large-2407': 'mistral-large-2407', + 'pixtral-12b-2409': 'pixtral-12b-2409', + 'pixtral-large-latest': 'pixtral-large-latest', + 'pixtral-large-2411': 'pixtral-large-2411', + 'open-codestral-mamba': 'open-codestral-mamba', + 'codestral-latest': 'codestral-latest', 'codestral-2405': 'codestral-2405', + 'open-mistral-nemo': 'open-mistral-nemo', + 'open-mistral-nemo-2407': 'open-mistral-nemo-2407', 'open-mistral-7b': 'open-mistral-7b', 'open-mixtral-8x7b': 'open-mixtral-8x7b', 'open-mixtral-8x22b': 'open-mixtral-8x22b', - 'mistral-small-latest': 'mistral-small-latest', - 'mistral-medium-latest': 'mistral-medium-latest', }, [Providers.Azure]: OPEN_AI_MODELS, [Providers.Google]: { + // 'gemini-2.0-flash': 'gemini-2.0-flash', Not generally available yet + // 'gemini-2.0-flash-001': 'gemini-2.0-flash-001', Not generally available yet 'gemini-1.5-flash': 'gemini-1.5-flash', 'gemini-1.5-flash-8b': 'gemini-1.5-flash-8b', + 'gemini-1.5-flash-002': 'gemini-1.5-flash-002', + 'gemini-1.5-flash-001': 'gemini-1.5-flash-001', 'gemini-1.5-pro': 'gemini-1.5-pro', + 'gemini-1.5-pro-002': 'gemini-1.5-pro-002', + 'gemini-1.5-pro-001': 'gemini-1.5-pro-001', 'gemini-1.0-pro': 'gemini-1.0-pro', + 'gemini-1.0-pro-002': 'gemini-1.0-pro-002', + 'gemini-1.0-pro-001': 'gemini-1.0-pro-001', + 'gemini-1.0-pro-vision': 'gemini-1.0-pro-vision', + 'gemini-1.0-pro-vision-001': 'gemini-1.0-pro-vision-001', }, [Providers.Custom]: {}, }