Skip to content

Commit 4497e42

Browse files
committed
Add Mistral API configuration and models
1 parent 75f4a6c commit 4497e42

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

src/shared/api.ts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,53 @@ export type MistralModelId = keyof typeof mistralModels
670670
export const mistralDefaultModelId: MistralModelId = "codestral-latest"
671671
export const mistralModels = {
672672
"codestral-latest": {
673-
maxTokens: 32_768,
673+
maxTokens: 256_000,
674674
contextWindow: 256_000,
675675
supportsImages: false,
676676
supportsPromptCache: false,
677677
inputPrice: 0.3,
678678
outputPrice: 0.9,
679679
},
680+
"mistral-large-latest": {
681+
maxTokens: 131_000,
682+
contextWindow: 131_000,
683+
supportsImages: false,
684+
supportsPromptCache: false,
685+
inputPrice: 2.0,
686+
outputPrice: 6.0,
687+
},
688+
"ministral-8b-latest": {
689+
maxTokens: 131_000,
690+
contextWindow: 131_000,
691+
supportsImages: false,
692+
supportsPromptCache: false,
693+
inputPrice: 0.1,
694+
outputPrice: 0.1,
695+
},
696+
"ministral-3b-latest": {
697+
maxTokens: 131_000,
698+
contextWindow: 131_000,
699+
supportsImages: false,
700+
supportsPromptCache: false,
701+
inputPrice: 0.04,
702+
outputPrice: 0.04,
703+
},
704+
"mistral-small-latest": {
705+
maxTokens: 32_000,
706+
contextWindow: 32_000,
707+
supportsImages: false,
708+
supportsPromptCache: false,
709+
inputPrice: 0.2,
710+
outputPrice: 0.6,
711+
},
712+
"pixtral-large-latest": {
713+
maxTokens: 131_000,
714+
contextWindow: 131_000,
715+
supportsImages: true,
716+
supportsPromptCache: false,
717+
inputPrice: 2.0,
718+
outputPrice: 6.0,
719+
},
680720
} as const satisfies Record<string, ModelInfo>
681721

682722
// Unbound Security

0 commit comments

Comments
 (0)