-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Expand file tree
/
Copy pathmistral.ts
More file actions
40 lines (37 loc) · 1.17 KB
/
mistral.ts
File metadata and controls
40 lines (37 loc) · 1.17 KB
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
import { defineModel } from '../define.js'
const mistralCapabilities = {
supportsVision: false,
supportsStreaming: true,
supportsFunctionCalling: true,
supportsJsonMode: true,
supportsReasoning: false,
supportsPreciseTokenCount: false,
}
function mistralModel(
id: string,
label: string,
contextWindow: number,
maxOutputTokens: number,
) {
return defineModel({
id,
label,
brandId: 'mistral',
vendorId: 'openai',
classification: ['chat', 'coding'],
defaultModel: id,
capabilities: mistralCapabilities,
contextWindow,
maxOutputTokens,
})
}
export default [
mistralModel('mistral-large-latest', 'Mistral Large Latest', 256_000, 32_768),
mistralModel('mistral-small-latest', 'Mistral Small Latest', 256_000, 32_768),
mistralModel('mistral-vibe-cli-latest', 'Vibe CLI Latest', 262_144, 32_768),
mistralModel('devstral-latest', 'Devstral Latest', 256_000, 32_768),
mistralModel('ministral-3b-latest', 'Ministral 3B Latest', 256_000, 32_768),
mistralModel('mixtral-8x7b-32768', 'Mixtral 8x7B 32768', 32_768, 32_768),
mistralModel('codestral', 'Codestral', 32_768, 8_192),
mistralModel('mistral:7b', 'Mistral 7B', 32_768, 4_096),
]