@ai-sdk/mistral 4.0.80 → 4.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/dist/index.d.ts +144 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/mistral-chat-language-model-options.ts +2 -39
- package/src/mistral-embedding-model-options.ts +2 -4
- package/src/mistral-model-catalog.ts +95 -26
- package/src/mistral-speech-model-options.ts +2 -6
- package/src/mistral-transcription-model-options.ts +2 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @ai-sdk/mistral
|
|
2
2
|
|
|
3
|
+
## 4.0.87
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f5fc6ba: Derive known model ID suggestions from each provider's model catalog declarations so catalog updates automatically update autocomplete, while preserving existing suggestions, endpoint-specific model lists, and support for custom model IDs.
|
|
8
|
+
|
|
9
|
+
## 4.0.86
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [6d50947]
|
|
14
|
+
- @ai-sdk/provider-utils@5.0.81
|
|
15
|
+
|
|
16
|
+
## 4.0.85
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [2ebc78b]
|
|
21
|
+
- Updated dependencies [cb4fa52]
|
|
22
|
+
- @ai-sdk/provider-utils@5.0.80
|
|
23
|
+
- @ai-sdk/provider@4.0.38
|
|
24
|
+
|
|
25
|
+
## 4.0.84
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [4311fa1]
|
|
30
|
+
- Updated dependencies [4311fa1]
|
|
31
|
+
- @ai-sdk/provider-utils@5.0.79
|
|
32
|
+
|
|
33
|
+
## 4.0.83
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [88b9575]
|
|
38
|
+
- @ai-sdk/provider-utils@5.0.78
|
|
39
|
+
|
|
40
|
+
## 4.0.82
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [9f37b45]
|
|
45
|
+
- @ai-sdk/provider-utils@5.0.77
|
|
46
|
+
|
|
47
|
+
## 4.0.81
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [6400cf8]
|
|
52
|
+
- Updated dependencies [f608c05]
|
|
53
|
+
- Updated dependencies [cab9c1f]
|
|
54
|
+
- Updated dependencies [c70adf6]
|
|
55
|
+
- @ai-sdk/provider-utils@5.0.76
|
|
56
|
+
- @ai-sdk/provider@4.0.37
|
|
57
|
+
|
|
3
58
|
## 4.0.80
|
|
4
59
|
|
|
5
60
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,147 @@
|
|
|
1
|
-
import { EmbeddingModelV4, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4Transport, Experimental_RealtimeModelV4TransportOptions, LanguageModelV4, ProviderV4, SpeechModelV4, TranscriptionModelV4 } from "@ai-sdk/provider";
|
|
1
|
+
import { EmbeddingModelV4, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4Transport, Experimental_RealtimeModelV4TransportOptions, LanguageModelV4, ModelCapabilities, ModelCapability, ProviderV4, SpeechModelV4, TranscriptionModelV4 } from "@ai-sdk/provider";
|
|
2
2
|
import { FetchFunction, InferSchema, Resolvable, WebSocketConstructor } from "@ai-sdk/provider-utils";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
+
//#region src/mistral-model-catalog.d.ts
|
|
5
|
+
type TranscriptionCapabilities = NonNullable<ModelCapabilities['transcription']> & {
|
|
6
|
+
languageWithTimestamps: boolean;
|
|
7
|
+
timestamps: ModelCapability;
|
|
8
|
+
diarization: ModelCapability;
|
|
9
|
+
contextBias: ModelCapability;
|
|
10
|
+
};
|
|
11
|
+
type SpeechCapabilities = NonNullable<ModelCapabilities['speech']> & {
|
|
12
|
+
savedVoices: ModelCapability;
|
|
13
|
+
referenceAudio: ModelCapability;
|
|
14
|
+
nonStreaming: boolean;
|
|
15
|
+
outputFormats: readonly string[];
|
|
16
|
+
};
|
|
17
|
+
declare const languageModelDefinitions: {
|
|
18
|
+
'labs-leanstral-1-5': true;
|
|
19
|
+
'magistral-medium-latest': true;
|
|
20
|
+
'magistral-small-latest': true;
|
|
21
|
+
'ministral-14b-latest': true;
|
|
22
|
+
'ministral-8b-latest': true;
|
|
23
|
+
'mistral-large-latest': true;
|
|
24
|
+
'mistral-medium-latest': true;
|
|
25
|
+
'mistral-small-latest': true;
|
|
26
|
+
'voxtral-small-latest': false;
|
|
27
|
+
'zai-glm-5-2': false;
|
|
28
|
+
'codestral-2508': undefined;
|
|
29
|
+
'codestral-latest': undefined;
|
|
30
|
+
'glm-5-2': undefined;
|
|
31
|
+
'labs-leanstral-1-5-1': undefined;
|
|
32
|
+
'ministral-14b-2512': undefined;
|
|
33
|
+
'ministral-3b-2512': undefined;
|
|
34
|
+
'ministral-3b-latest': undefined;
|
|
35
|
+
'ministral-8b-2512': undefined;
|
|
36
|
+
'mistral-code-fim-latest': undefined;
|
|
37
|
+
'mistral-code-latest': undefined;
|
|
38
|
+
'mistral-large-2512': undefined;
|
|
39
|
+
'mistral-large-4': undefined;
|
|
40
|
+
'mistral-large-4-0': undefined;
|
|
41
|
+
'mistral-medium': undefined;
|
|
42
|
+
'mistral-medium-2604': undefined;
|
|
43
|
+
'mistral-medium-3': undefined;
|
|
44
|
+
'mistral-medium-3-5': undefined;
|
|
45
|
+
'mistral-medium-3.5': undefined;
|
|
46
|
+
'mistral-small-2603': undefined;
|
|
47
|
+
'mistral-vibe-cli-fast': undefined;
|
|
48
|
+
'mistral-vibe-cli-latest': undefined;
|
|
49
|
+
'mistral-vibe-cli-with-tools': undefined;
|
|
50
|
+
'voxtral-small-2507': undefined;
|
|
51
|
+
'zai-glm-5': undefined;
|
|
52
|
+
'zai-glm-5-3': undefined;
|
|
53
|
+
'zai-glm-5-3-flash': undefined;
|
|
54
|
+
'zai-glm-latest': undefined;
|
|
55
|
+
};
|
|
56
|
+
declare const mistralEmbeddingModelEntries: {
|
|
57
|
+
'mistral-embed': {
|
|
58
|
+
capabilities: {
|
|
59
|
+
embedding: {
|
|
60
|
+
defaultDimensions: number;
|
|
61
|
+
customDimensions: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
providerOptions: {
|
|
65
|
+
embedding: Record<"metadata" | "outputDimension" | "outputDtype", ModelCapability>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
'codestral-embed': {
|
|
69
|
+
capabilities: {
|
|
70
|
+
embedding: {
|
|
71
|
+
defaultDimensions: number;
|
|
72
|
+
customDimensions: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
providerOptions: {
|
|
76
|
+
embedding: Record<"metadata" | "outputDimension" | "outputDtype", ModelCapability>;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
'codestral-embed-2505': undefined;
|
|
80
|
+
'mistral-embed-2312': undefined;
|
|
81
|
+
};
|
|
82
|
+
declare const mistralSpeechModelEntries: {
|
|
83
|
+
'voxtral-mini-tts-3-0': {
|
|
84
|
+
capabilities: {
|
|
85
|
+
speech: SpeechCapabilities;
|
|
86
|
+
};
|
|
87
|
+
providerOptions: {
|
|
88
|
+
speech: Record<"refAudio" | "expressiveness" | "phonemeHints", ModelCapability>;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
'voxtral-mini-tts-2603': {
|
|
92
|
+
capabilities: {
|
|
93
|
+
speech: SpeechCapabilities;
|
|
94
|
+
};
|
|
95
|
+
providerOptions: {
|
|
96
|
+
speech: Record<"refAudio" | "expressiveness" | "phonemeHints", ModelCapability>;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
'voxtral-mini-tts-3': undefined;
|
|
100
|
+
'voxtral-mini-tts-latest': undefined;
|
|
101
|
+
};
|
|
102
|
+
declare const mistralTranscriptionModelEntries: {
|
|
103
|
+
'voxtral-mini-transcribe-3-0': {
|
|
104
|
+
capabilities: {
|
|
105
|
+
transcription: TranscriptionCapabilities;
|
|
106
|
+
};
|
|
107
|
+
providerOptions: {
|
|
108
|
+
transcription: Record<"language" | "returnLanguage" | "temperature" | "timestampGranularities" | "diarize" | "contextBias" | "targetStreamingDelayMs" | "speakerReferences" | "turnDetection", ModelCapability>;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
'voxtral-small-transcribe-3-0': {
|
|
112
|
+
capabilities: {
|
|
113
|
+
transcription: TranscriptionCapabilities;
|
|
114
|
+
};
|
|
115
|
+
providerOptions: {
|
|
116
|
+
transcription: Record<"language" | "returnLanguage" | "temperature" | "timestampGranularities" | "diarize" | "contextBias" | "targetStreamingDelayMs" | "speakerReferences" | "turnDetection", ModelCapability>;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
'voxtral-mini-latest': {
|
|
120
|
+
capabilities: {
|
|
121
|
+
transcription: TranscriptionCapabilities;
|
|
122
|
+
};
|
|
123
|
+
providerOptions: {
|
|
124
|
+
transcription: Record<"language" | "returnLanguage" | "temperature" | "timestampGranularities" | "diarize" | "contextBias" | "targetStreamingDelayMs" | "speakerReferences" | "turnDetection", ModelCapability>;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
'voxtral-mini-2602': undefined;
|
|
128
|
+
'voxtral-mini-transcribe-3': undefined;
|
|
129
|
+
'voxtral-mini-transcribe-latest': undefined;
|
|
130
|
+
'voxtral-mini-transcribe-realtime-3': undefined;
|
|
131
|
+
'voxtral-mini-transcribe-realtime-3-0': undefined;
|
|
132
|
+
'voxtral-small-transcribe-3': undefined;
|
|
133
|
+
'voxtral-small-transcribe-latest': undefined;
|
|
134
|
+
};
|
|
135
|
+
/** Known model IDs, derived from the declarations used to build the catalog. */
|
|
136
|
+
type MistralModelIds = {
|
|
137
|
+
language: keyof typeof languageModelDefinitions;
|
|
138
|
+
embedding: keyof typeof mistralEmbeddingModelEntries;
|
|
139
|
+
speech: keyof typeof mistralSpeechModelEntries;
|
|
140
|
+
transcription: keyof typeof mistralTranscriptionModelEntries;
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
4
143
|
//#region src/mistral-chat-language-model-options.d.ts
|
|
5
|
-
type MistralChatModelId = '
|
|
144
|
+
type MistralChatModelId = MistralModelIds['language'] | (string & {});
|
|
6
145
|
declare const mistralLanguageModelChatOptions: () => z.ZodObject<{
|
|
7
146
|
safePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
8
147
|
documentImageLimit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -22,7 +161,7 @@ declare const mistralLanguageModelChatOptions: () => z.ZodObject<{
|
|
|
22
161
|
type MistralLanguageModelChatOptions = z.infer<ReturnType<typeof mistralLanguageModelChatOptions>>;
|
|
23
162
|
//#endregion
|
|
24
163
|
//#region src/mistral-embedding-model-options.d.ts
|
|
25
|
-
type MistralEmbeddingModelId = '
|
|
164
|
+
type MistralEmbeddingModelId = MistralModelIds['embedding'] | (string & {});
|
|
26
165
|
declare const mistralEmbeddingModelOptions: z.ZodObject<{
|
|
27
166
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
167
|
outputDimension: z.ZodOptional<z.ZodNumber>;
|
|
@@ -37,7 +176,7 @@ declare const mistralEmbeddingModelOptions: z.ZodObject<{
|
|
|
37
176
|
type MistralEmbeddingModelOptions = z.infer<typeof mistralEmbeddingModelOptions>;
|
|
38
177
|
//#endregion
|
|
39
178
|
//#region src/mistral-speech-model-options.d.ts
|
|
40
|
-
type MistralSpeechModelId = '
|
|
179
|
+
type MistralSpeechModelId = MistralModelIds['speech'] | (string & {});
|
|
41
180
|
declare const mistralSpeechModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
42
181
|
refAudio?: string | undefined;
|
|
43
182
|
expressiveness?: number | undefined;
|
|
@@ -46,7 +185,7 @@ declare const mistralSpeechModelOptions: import("@ai-sdk/provider-utils").LazySc
|
|
|
46
185
|
type MistralSpeechModelOptions = InferSchema<typeof mistralSpeechModelOptions>;
|
|
47
186
|
//#endregion
|
|
48
187
|
//#region src/mistral-transcription-model-options.d.ts
|
|
49
|
-
type MistralTranscriptionModelId = '
|
|
188
|
+
type MistralTranscriptionModelId = MistralModelIds['transcription'] | (string & {});
|
|
50
189
|
declare const mistralTranscriptionModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
51
190
|
language?: string | undefined;
|
|
52
191
|
returnLanguage?: boolean | undefined;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["TransportOptions","RealtimeTransport","ClientEvent","RealtimeModelV4TransportOptions","RealtimeModelV4ClientEvent","RealtimeModelV4SessionConfig","RealtimeModelV4","RealtimeModelV4SessionConfig"],"sources":["../src/mistral-chat-language-model-options.ts","../src/mistral-embedding-model-options.ts","../src/mistral-speech-model-options.ts","../src/mistral-transcription-model-options.ts","../src/tool/index.ts","../src/realtime/mistral-realtime-transport.ts","../src/realtime/mistral-realtime-model.ts","../src/realtime/mistral-realtime-factory.ts","../src/mistral-provider.ts","../src/mistral-conversation-language-model-options.ts","../src/realtime/mistral-realtime-model-options.ts","../src/version.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["TransportOptions","RealtimeTransport","ClientEvent","RealtimeModelV4TransportOptions","RealtimeModelV4ClientEvent","RealtimeModelV4SessionConfig","RealtimeModelV4","RealtimeModelV4SessionConfig"],"sources":["../src/mistral-model-catalog.ts","../src/mistral-chat-language-model-options.ts","../src/mistral-embedding-model-options.ts","../src/mistral-speech-model-options.ts","../src/mistral-transcription-model-options.ts","../src/tool/index.ts","../src/realtime/mistral-realtime-transport.ts","../src/realtime/mistral-realtime-model.ts","../src/realtime/mistral-realtime-factory.ts","../src/mistral-provider.ts","../src/mistral-conversation-language-model-options.ts","../src/realtime/mistral-realtime-model-options.ts","../src/version.ts"],"mappings":";;;;KA0GK,4BAA4B,YAC/B;EAEA;EACA,YAAY;EACZ,aAAa;EACb,aAAa;;KAGV,qBAAqB,YAAY;EACpC,aAAa;EACb,gBAAgB;EAChB;EACA;;cAkBI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiPA;;;;;;;;;;;;;;;;;;;;;;;;;;cASA;;;;;;;;;;;;;;;;;;;;cAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0FM;EACV,uBAAuB;EACvB,wBAAwB;EACxB,qBAAqB;EACrB,4BAA4B;;;;KCpelB,qBAAqB;cAEpB,uCAA+B,EAAA;;;;;;;;;;;;;;;GAsDxC,EAAA,KAAA;KAKQ,kCAAkC,EAAE,MAC9C,kBAAkB;;;KChER,0BACR;cAGS,8BAA4B,EAAA;;;;;;;;;;GAiBvC,EAAA,KAAA;KAEU,+BAA+B,EAAE,aACpC;;;KCnBG,uBAAuB;cAEtB,4DAAyB;;;iBAAzB;;KA2BD,4BAA4B,mBAC/B;;;KC9BG,8BACR;cAIS,mEAAgC;;;;;;;;sBAAhC;;;;;;;;;KA0ED,mCAAmC,mBACtC;;;cCtFI;;;;;;;;;;;;;;;;;;;;;;;cCsHA,oCAAoCC;mBA6ClB;UA5CrB;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UAKA;UACA;UACA;UACA;EASqB,YAAA,SAASD;EAEhC,UACJ,KACA,eACA,QACA,SACA,eACC,WAAWC,uDAAmC;UAyBnC;EAsJd,UAAU,OAAOC,yCAAa,6BAA6B;UA6B7C;UAuBA;EA0CR,aAAa,SAAS,cAAc;EAmE1C,eAAe;UASD;UAiBN;EAIR;EAMM,kBAAkB;UAUhB;UAmDM;UAoBN;UAMA;UAWA;UAKA;UAaA;EAQF,UAAU;UAMR;EAUR,SAAS;EA8CT;;;;;cC5sBW,gCAAgCI;WAWtB,SAAS;WAVrB;WACA;WACA;;;;;;;EAQY,YAAA,SAAS;EAE9B,gBAAgB,SAASH,+CAA+B;EAIxD,iBAAiB,0CAAY;EAI7B,qBAAqB,OAAOC;EAM5B,mBAAmB,QAAQC,4CAA4B,QAAA;;;;;KCrB7C;EACV;EACA;EACA;;UAGe;GACd,SAAS,qBAAqB;;EAG/B,cAAc;IACZ,OAAO;IACP,gBAAgBE;IAChB,cAAc;MACZ,QAAQ;;EAGZ,aAAa;IACX;IACA,cAAc;MACZ;;;;UCRW,wBAAwB;EACvC,cAAc;;EAEd,uBAAuB;GACtB,SAAS,qBAAqB;;;;EAK/B,cAAc,SAAS,qBAAqB;;;;EAK5C,KAAK,SAAS,qBAAqB;;;;EAKnC,aAAa,SAAS,qBAAqB;;;;EAK3C,UAAU,SAAS,0BAA0B;;;;EAK7C,iBAAiB,SAAS,4BAA4B;;;;EAKtD,OAAO,SAAS,uBAAuB;;;;EAKvC,YAAY,SAAS,uBAAuB;;;;EAK5C,cAAc,SAAS,8BAA8B;;;;EAKrD,mBACE,SAAS,8BACR;;;;EAKH,cAAc,SAAS,0BAA0B;;;;EAKjD,mBAAmB,SAAS,0BAA0B;;UAGvC;;;;;EAKf;;;;;EAMA,SAAS;;;;EAKT,UAAU;;;;;EAMV,QAAQ;;;;;EAMR,YAAY;EAEZ;;;;;wBAMc,cACd,UAAS,0BACR;;;;qBAqGU,SAAO;;;KC/NR,0CACV;;;cCDW,8DAA2B;;;;;;;;;;;;;;;;;mBAA3B;;;;;;;;;;;;;;KAsDD,8BAA8B,mBACjC;;;qBClEI"}
|
package/dist/index.js
CHANGED
|
@@ -341,7 +341,7 @@ const mistralProviderOptions = {
|
|
|
341
341
|
phonemeHints: { description: "Pronunciation hints as IPA phonemes." }
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
const
|
|
344
|
+
const languageModelDefinitions = {
|
|
345
345
|
"labs-leanstral-1-5": true,
|
|
346
346
|
"magistral-medium-latest": true,
|
|
347
347
|
"magistral-small-latest": true,
|
|
@@ -351,7 +351,34 @@ const documentedLanguageModels = {
|
|
|
351
351
|
"mistral-medium-latest": true,
|
|
352
352
|
"mistral-small-latest": true,
|
|
353
353
|
"voxtral-small-latest": false,
|
|
354
|
-
"zai-glm-5-2": false
|
|
354
|
+
"zai-glm-5-2": false,
|
|
355
|
+
"codestral-2508": void 0,
|
|
356
|
+
"codestral-latest": void 0,
|
|
357
|
+
"glm-5-2": void 0,
|
|
358
|
+
"labs-leanstral-1-5-1": void 0,
|
|
359
|
+
"ministral-14b-2512": void 0,
|
|
360
|
+
"ministral-3b-2512": void 0,
|
|
361
|
+
"ministral-3b-latest": void 0,
|
|
362
|
+
"ministral-8b-2512": void 0,
|
|
363
|
+
"mistral-code-fim-latest": void 0,
|
|
364
|
+
"mistral-code-latest": void 0,
|
|
365
|
+
"mistral-large-2512": void 0,
|
|
366
|
+
"mistral-large-4": void 0,
|
|
367
|
+
"mistral-large-4-0": void 0,
|
|
368
|
+
"mistral-medium": void 0,
|
|
369
|
+
"mistral-medium-2604": void 0,
|
|
370
|
+
"mistral-medium-3": void 0,
|
|
371
|
+
"mistral-medium-3-5": void 0,
|
|
372
|
+
"mistral-medium-3.5": void 0,
|
|
373
|
+
"mistral-small-2603": void 0,
|
|
374
|
+
"mistral-vibe-cli-fast": void 0,
|
|
375
|
+
"mistral-vibe-cli-latest": void 0,
|
|
376
|
+
"mistral-vibe-cli-with-tools": void 0,
|
|
377
|
+
"voxtral-small-2507": void 0,
|
|
378
|
+
"zai-glm-5": void 0,
|
|
379
|
+
"zai-glm-5-3": void 0,
|
|
380
|
+
"zai-glm-5-3-flash": void 0,
|
|
381
|
+
"zai-glm-latest": void 0
|
|
355
382
|
};
|
|
356
383
|
const modelsWithoutReasoningEffort = /* @__PURE__ */ new Set([
|
|
357
384
|
"codestral-2508",
|
|
@@ -503,16 +530,36 @@ function createEmbeddingModelEntry(defaultDimensions, customDimensions) {
|
|
|
503
530
|
}) }
|
|
504
531
|
};
|
|
505
532
|
}
|
|
506
|
-
const
|
|
507
|
-
|
|
533
|
+
const mistralEmbeddingModelEntries = {
|
|
534
|
+
"mistral-embed": createEmbeddingModelEntry(1024, false),
|
|
535
|
+
"codestral-embed": createEmbeddingModelEntry(1536, true),
|
|
536
|
+
"codestral-embed-2505": void 0,
|
|
537
|
+
"mistral-embed-2312": void 0
|
|
538
|
+
};
|
|
539
|
+
const mistralSpeechModelEntries = {
|
|
540
|
+
"voxtral-mini-tts-3-0": createSpeechModelEntry(true),
|
|
541
|
+
"voxtral-mini-tts-2603": createSpeechModelEntry(true),
|
|
542
|
+
"voxtral-mini-tts-3": void 0,
|
|
543
|
+
"voxtral-mini-tts-latest": void 0
|
|
544
|
+
};
|
|
545
|
+
const mistralTranscriptionModelEntries = {
|
|
508
546
|
"voxtral-mini-transcribe-3-0": createTranscriptionModelEntry("voxtral-mini-transcribe-3-0", true),
|
|
509
547
|
"voxtral-small-transcribe-3-0": createTranscriptionModelEntry("voxtral-small-transcribe-3-0", true),
|
|
510
548
|
"voxtral-mini-latest": createTranscriptionModelEntry("voxtral-mini-latest", true),
|
|
511
|
-
"voxtral-mini-
|
|
512
|
-
"voxtral-mini-
|
|
513
|
-
"
|
|
514
|
-
"
|
|
549
|
+
"voxtral-mini-2602": void 0,
|
|
550
|
+
"voxtral-mini-transcribe-3": void 0,
|
|
551
|
+
"voxtral-mini-transcribe-latest": void 0,
|
|
552
|
+
"voxtral-mini-transcribe-realtime-3": void 0,
|
|
553
|
+
"voxtral-mini-transcribe-realtime-3-0": void 0,
|
|
554
|
+
"voxtral-small-transcribe-3": void 0,
|
|
555
|
+
"voxtral-small-transcribe-latest": void 0
|
|
515
556
|
};
|
|
557
|
+
const mistralModelCatalog = Object.fromEntries(Object.entries({
|
|
558
|
+
...Object.fromEntries(Object.entries(languageModelDefinitions).filter(([, definition]) => definition != null).map(([modelId, image]) => [modelId, createLanguageModelEntry(modelId, image)])),
|
|
559
|
+
...mistralTranscriptionModelEntries,
|
|
560
|
+
...mistralSpeechModelEntries,
|
|
561
|
+
...mistralEmbeddingModelEntries
|
|
562
|
+
}).flatMap(([modelId, entry]) => entry != null ? [[modelId, entry]] : []));
|
|
516
563
|
function findModelEntry(modelId) {
|
|
517
564
|
return Object.prototype.hasOwnProperty.call(mistralModelCatalog, modelId) ? mistralModelCatalog[modelId] : void 0;
|
|
518
565
|
}
|
|
@@ -2245,7 +2292,7 @@ const mistralTranscriptionResponseSchema = lazySchema(() => zodSchema(z.object({
|
|
|
2245
2292
|
})));
|
|
2246
2293
|
//#endregion
|
|
2247
2294
|
//#region src/version.ts
|
|
2248
|
-
const VERSION = "4.0.
|
|
2295
|
+
const VERSION = "4.0.87";
|
|
2249
2296
|
//#endregion
|
|
2250
2297
|
//#region src/tool/web-search.ts
|
|
2251
2298
|
const inputSchema = lazySchema(() => zodSchema(z.object({ arguments: z.string() })));
|