Skip to content

Commit 1538038

Browse files
committed
Added support for new models
1 parent 2e3db11 commit 1538038

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/models.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const modelStrings: { [key: string]: string } = {
4747
"codestral-latest": "Codestral (Latest)",
4848
"codestral-mamba-2407": "Codestral Mamba (2407)",
4949
"codestral-mamba-latest": "Codestral Mamba (Latest)",
50+
"codestral-2411-rc5": "Codestral (2411-rc5)",
51+
"codestral-2412": "Codestral (2412)",
52+
"codestral-2501": "Codestral (2501)",
5053
"mistral-embed": "Mistral Embed",
5154
"mistral-large-2402": "Mistral Large (2402)",
5255
"mistral-large-2407": "Mistral Large (2407)",
@@ -77,6 +80,9 @@ const modelStrings: { [key: string]: string } = {
7780
"ministral-8b-latest": "Ministral 8B (Latest)",
7881
"mistral-moderation-2411": "Mistral Moderation (2411)",
7982
"mistral-moderation-latest": "Mistral Moderation (Latest)",
83+
"mistral-small-2501": "Mistral Small (2501)",
84+
"mistral-large-2502-15-1-rc2": "Mistral Large (2502.15.1-rc2)",
85+
"mistral-large-pixtral-2411": "Mistral Large Pixtral (2411)",
8086

8187
// Anthropic Models
8288
"claude-2.0": "Claude 2.0",
@@ -95,8 +101,8 @@ export function getModelString(id: string): string {
95101

96102
export function getModelProvider(id: string, models: ModelList): AiProvider {
97103
if (models.mistralModels.includes(id)) return "mistral";
98-
if (models.anthropicModels.includes(id)) return "anthropic";
99-
return "openAI";
104+
else if (models.anthropicModels.includes(id)) return "anthropic";
105+
else return "openAI";
100106
}
101107

102108
export interface ModelList {

0 commit comments

Comments
 (0)