@stll/ai-catalog 0.4.0 → 0.5.0
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/dist/benchmark-frontier.d.ts +78 -0
- package/dist/benchmark-frontier.js +125 -0
- package/dist/benchmarks.d.ts +593 -0
- package/dist/benchmarks.js +611 -0
- package/dist/index-D5gnRT1S.d.ts +1664 -0
- package/dist/index.d.ts +2 -1664
- package/dist/index.js +1 -2137
- package/dist/src-Dn6XqN2_.js +2138 -0
- package/package.json +13 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,1664 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* models.dev publishes USD prices per one million tokens. Stella stores the
|
|
5
|
-
* same rates as integer ledger units so usage arithmetic never depends on
|
|
6
|
-
* floating point values.
|
|
7
|
-
*/
|
|
8
|
-
export declare const MODEL_RATE_UNITS_PER_USD = 100000;
|
|
9
|
-
type ModelRateAmounts = {
|
|
10
|
-
/** Normalized ledger units per 1M input tokens. */
|
|
11
|
-
inputPerMTok: number;
|
|
12
|
-
/** Normalized ledger units per 1M output tokens. */
|
|
13
|
-
outputPerMTok: number;
|
|
14
|
-
/**
|
|
15
|
-
* Normalized ledger units per 1M cached input tokens, when the provider
|
|
16
|
-
* offers a cache-read adjustment. Falls back to `inputPerMTok` when absent.
|
|
17
|
-
*/
|
|
18
|
-
cachedInputPerMTok?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Normalized ledger units per 1M tokens written to a prompt cache. Falls
|
|
21
|
-
* back to `inputPerMTok` when absent.
|
|
22
|
-
*/
|
|
23
|
-
cachedWriteInputPerMTok?: number;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* A discriminated rate schedule. Consumers resolve the schedule from the
|
|
27
|
-
* request's total input tokens before reading any prices, so a model with a
|
|
28
|
-
* long-context premium cannot accidentally be metered at its base rate.
|
|
29
|
-
*/
|
|
30
|
-
type ModelRate = ({
|
|
31
|
-
kind: "flat";
|
|
32
|
-
} & ModelRateAmounts) | {
|
|
33
|
-
kind: "input-token-tiered";
|
|
34
|
-
/** The base tier applies at or below this total input-token count. */
|
|
35
|
-
inputTokenThreshold: number;
|
|
36
|
-
standard: ModelRateAmounts;
|
|
37
|
-
/** Applies to the entire request once input exceeds the threshold. */
|
|
38
|
-
aboveThreshold: ModelRateAmounts;
|
|
39
|
-
};
|
|
40
|
-
export declare const getStandardModelRate: (rate: ModelRate) => ModelRateAmounts;
|
|
41
|
-
export declare const resolveModelRate: (rate: ModelRate, inputTokens: number) => ModelRateAmounts;
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/model-rates.gen.d.ts
|
|
44
|
-
export declare const MODEL_RATES: {
|
|
45
|
-
readonly "gemini-3.8-flash": {
|
|
46
|
-
readonly kind: "flat";
|
|
47
|
-
readonly inputPerMTok: 75000;
|
|
48
|
-
readonly outputPerMTok: 375000;
|
|
49
|
-
readonly cachedInputPerMTok: 7500;
|
|
50
|
-
};
|
|
51
|
-
readonly "gemini-3.7-flash": {
|
|
52
|
-
readonly kind: "flat";
|
|
53
|
-
readonly inputPerMTok: 75000;
|
|
54
|
-
readonly outputPerMTok: 375000;
|
|
55
|
-
readonly cachedInputPerMTok: 7500;
|
|
56
|
-
};
|
|
57
|
-
readonly "gemini-3.6-flash": {
|
|
58
|
-
readonly kind: "flat";
|
|
59
|
-
readonly inputPerMTok: 75000;
|
|
60
|
-
readonly outputPerMTok: 375000;
|
|
61
|
-
readonly cachedInputPerMTok: 7500;
|
|
62
|
-
};
|
|
63
|
-
readonly "gemini-3.5-flash-lite": {
|
|
64
|
-
readonly kind: "flat";
|
|
65
|
-
readonly inputPerMTok: 30000;
|
|
66
|
-
readonly outputPerMTok: 250000;
|
|
67
|
-
readonly cachedInputPerMTok: 3000;
|
|
68
|
-
};
|
|
69
|
-
readonly "gemini-3.1-pro-preview": {
|
|
70
|
-
readonly kind: "input-token-tiered";
|
|
71
|
-
readonly inputTokenThreshold: 200000;
|
|
72
|
-
readonly standard: {
|
|
73
|
-
readonly inputPerMTok: 200000;
|
|
74
|
-
readonly outputPerMTok: 1200000;
|
|
75
|
-
readonly cachedInputPerMTok: 20000;
|
|
76
|
-
};
|
|
77
|
-
readonly aboveThreshold: {
|
|
78
|
-
readonly inputPerMTok: 400000;
|
|
79
|
-
readonly outputPerMTok: 1800000;
|
|
80
|
-
readonly cachedInputPerMTok: 40000;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
readonly "gemini-3.5-flash": {
|
|
84
|
-
readonly kind: "flat";
|
|
85
|
-
readonly inputPerMTok: 150000;
|
|
86
|
-
readonly outputPerMTok: 900000;
|
|
87
|
-
readonly cachedInputPerMTok: 15000;
|
|
88
|
-
};
|
|
89
|
-
readonly "gemini-3.1-flash-lite": {
|
|
90
|
-
readonly kind: "flat";
|
|
91
|
-
readonly inputPerMTok: 25000;
|
|
92
|
-
readonly outputPerMTok: 150000;
|
|
93
|
-
readonly cachedInputPerMTok: 2500;
|
|
94
|
-
};
|
|
95
|
-
readonly "gpt-6.1-sol": {
|
|
96
|
-
readonly kind: "input-token-tiered";
|
|
97
|
-
readonly inputTokenThreshold: 272000;
|
|
98
|
-
readonly standard: {
|
|
99
|
-
readonly inputPerMTok: 200000;
|
|
100
|
-
readonly outputPerMTok: 1000000;
|
|
101
|
-
readonly cachedInputPerMTok: 10000;
|
|
102
|
-
readonly cachedWriteInputPerMTok: 250000;
|
|
103
|
-
};
|
|
104
|
-
readonly aboveThreshold: {
|
|
105
|
-
readonly inputPerMTok: 400000;
|
|
106
|
-
readonly outputPerMTok: 1500000;
|
|
107
|
-
readonly cachedInputPerMTok: 20000;
|
|
108
|
-
readonly cachedWriteInputPerMTok: 500000;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
readonly "gpt-6-astra": {
|
|
112
|
-
readonly kind: "input-token-tiered";
|
|
113
|
-
readonly inputTokenThreshold: 272000;
|
|
114
|
-
readonly standard: {
|
|
115
|
-
readonly inputPerMTok: 1000000;
|
|
116
|
-
readonly outputPerMTok: 5000000;
|
|
117
|
-
readonly cachedInputPerMTok: 100000;
|
|
118
|
-
readonly cachedWriteInputPerMTok: 1250000;
|
|
119
|
-
};
|
|
120
|
-
readonly aboveThreshold: {
|
|
121
|
-
readonly inputPerMTok: 2000000;
|
|
122
|
-
readonly outputPerMTok: 7500000;
|
|
123
|
-
readonly cachedInputPerMTok: 200000;
|
|
124
|
-
readonly cachedWriteInputPerMTok: 2500000;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
readonly "gpt-6-sol": {
|
|
128
|
-
readonly kind: "input-token-tiered";
|
|
129
|
-
readonly inputTokenThreshold: 272000;
|
|
130
|
-
readonly standard: {
|
|
131
|
-
readonly inputPerMTok: 200000;
|
|
132
|
-
readonly outputPerMTok: 1000000;
|
|
133
|
-
readonly cachedInputPerMTok: 20000;
|
|
134
|
-
readonly cachedWriteInputPerMTok: 250000;
|
|
135
|
-
};
|
|
136
|
-
readonly aboveThreshold: {
|
|
137
|
-
readonly inputPerMTok: 400000;
|
|
138
|
-
readonly outputPerMTok: 1500000;
|
|
139
|
-
readonly cachedInputPerMTok: 40000;
|
|
140
|
-
readonly cachedWriteInputPerMTok: 500000;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
readonly "gpt-6-luna": {
|
|
144
|
-
readonly kind: "input-token-tiered";
|
|
145
|
-
readonly inputTokenThreshold: 272000;
|
|
146
|
-
readonly standard: {
|
|
147
|
-
readonly inputPerMTok: 10000;
|
|
148
|
-
readonly outputPerMTok: 50000;
|
|
149
|
-
readonly cachedInputPerMTok: 1000;
|
|
150
|
-
readonly cachedWriteInputPerMTok: 12500;
|
|
151
|
-
};
|
|
152
|
-
readonly aboveThreshold: {
|
|
153
|
-
readonly inputPerMTok: 20000;
|
|
154
|
-
readonly outputPerMTok: 75000;
|
|
155
|
-
readonly cachedInputPerMTok: 2000;
|
|
156
|
-
readonly cachedWriteInputPerMTok: 25000;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
readonly "gpt-5.6": {
|
|
160
|
-
readonly kind: "input-token-tiered";
|
|
161
|
-
readonly inputTokenThreshold: 272000;
|
|
162
|
-
readonly standard: {
|
|
163
|
-
readonly inputPerMTok: 400000;
|
|
164
|
-
readonly outputPerMTok: 2000000;
|
|
165
|
-
readonly cachedInputPerMTok: 40000;
|
|
166
|
-
readonly cachedWriteInputPerMTok: 500000;
|
|
167
|
-
};
|
|
168
|
-
readonly aboveThreshold: {
|
|
169
|
-
readonly inputPerMTok: 800000;
|
|
170
|
-
readonly outputPerMTok: 3000000;
|
|
171
|
-
readonly cachedInputPerMTok: 80000;
|
|
172
|
-
readonly cachedWriteInputPerMTok: 1000000;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
readonly "gpt-5.6-terra": {
|
|
176
|
-
readonly kind: "input-token-tiered";
|
|
177
|
-
readonly inputTokenThreshold: 272000;
|
|
178
|
-
readonly standard: {
|
|
179
|
-
readonly inputPerMTok: 200000;
|
|
180
|
-
readonly outputPerMTok: 1200000;
|
|
181
|
-
readonly cachedInputPerMTok: 20000;
|
|
182
|
-
readonly cachedWriteInputPerMTok: 250000;
|
|
183
|
-
};
|
|
184
|
-
readonly aboveThreshold: {
|
|
185
|
-
readonly inputPerMTok: 400000;
|
|
186
|
-
readonly outputPerMTok: 1800000;
|
|
187
|
-
readonly cachedInputPerMTok: 40000;
|
|
188
|
-
readonly cachedWriteInputPerMTok: 500000;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
readonly "gpt-5.6-luna": {
|
|
192
|
-
readonly kind: "input-token-tiered";
|
|
193
|
-
readonly inputTokenThreshold: 272000;
|
|
194
|
-
readonly standard: {
|
|
195
|
-
readonly inputPerMTok: 20000;
|
|
196
|
-
readonly outputPerMTok: 120000;
|
|
197
|
-
readonly cachedInputPerMTok: 2000;
|
|
198
|
-
readonly cachedWriteInputPerMTok: 25000;
|
|
199
|
-
};
|
|
200
|
-
readonly aboveThreshold: {
|
|
201
|
-
readonly inputPerMTok: 40000;
|
|
202
|
-
readonly outputPerMTok: 180000;
|
|
203
|
-
readonly cachedInputPerMTok: 4000;
|
|
204
|
-
readonly cachedWriteInputPerMTok: 50000;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
readonly "gpt-5.5": {
|
|
208
|
-
readonly kind: "input-token-tiered";
|
|
209
|
-
readonly inputTokenThreshold: 272000;
|
|
210
|
-
readonly standard: {
|
|
211
|
-
readonly inputPerMTok: 500000;
|
|
212
|
-
readonly outputPerMTok: 3000000;
|
|
213
|
-
readonly cachedInputPerMTok: 50000;
|
|
214
|
-
};
|
|
215
|
-
readonly aboveThreshold: {
|
|
216
|
-
readonly inputPerMTok: 1000000;
|
|
217
|
-
readonly outputPerMTok: 4500000;
|
|
218
|
-
readonly cachedInputPerMTok: 100000;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
readonly "gpt-5.4": {
|
|
222
|
-
readonly kind: "input-token-tiered";
|
|
223
|
-
readonly inputTokenThreshold: 272000;
|
|
224
|
-
readonly standard: {
|
|
225
|
-
readonly inputPerMTok: 250000;
|
|
226
|
-
readonly outputPerMTok: 1500000;
|
|
227
|
-
readonly cachedInputPerMTok: 25000;
|
|
228
|
-
};
|
|
229
|
-
readonly aboveThreshold: {
|
|
230
|
-
readonly inputPerMTok: 500000;
|
|
231
|
-
readonly outputPerMTok: 2250000;
|
|
232
|
-
readonly cachedInputPerMTok: 50000;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
readonly "gpt-5.4-mini": {
|
|
236
|
-
readonly kind: "flat";
|
|
237
|
-
readonly inputPerMTok: 75000;
|
|
238
|
-
readonly outputPerMTok: 450000;
|
|
239
|
-
readonly cachedInputPerMTok: 7500;
|
|
240
|
-
};
|
|
241
|
-
readonly "gpt-5.4-nano": {
|
|
242
|
-
readonly kind: "flat";
|
|
243
|
-
readonly inputPerMTok: 20000;
|
|
244
|
-
readonly outputPerMTok: 125000;
|
|
245
|
-
readonly cachedInputPerMTok: 2000;
|
|
246
|
-
};
|
|
247
|
-
readonly "gpt-5.2": {
|
|
248
|
-
readonly kind: "flat";
|
|
249
|
-
readonly inputPerMTok: 175000;
|
|
250
|
-
readonly outputPerMTok: 1400000;
|
|
251
|
-
readonly cachedInputPerMTok: 17500;
|
|
252
|
-
};
|
|
253
|
-
readonly "claude-sonnet-5-5": {
|
|
254
|
-
readonly kind: "flat";
|
|
255
|
-
readonly inputPerMTok: 200000;
|
|
256
|
-
readonly outputPerMTok: 1000000;
|
|
257
|
-
readonly cachedInputPerMTok: 20000;
|
|
258
|
-
readonly cachedWriteInputPerMTok: 250000;
|
|
259
|
-
};
|
|
260
|
-
readonly "claude-sonnet-5": {
|
|
261
|
-
readonly kind: "flat";
|
|
262
|
-
readonly inputPerMTok: 200000;
|
|
263
|
-
readonly outputPerMTok: 1000000;
|
|
264
|
-
readonly cachedInputPerMTok: 20000;
|
|
265
|
-
readonly cachedWriteInputPerMTok: 250000;
|
|
266
|
-
};
|
|
267
|
-
readonly "claude-fable-5-1": {
|
|
268
|
-
readonly kind: "flat";
|
|
269
|
-
readonly inputPerMTok: 1000000;
|
|
270
|
-
readonly outputPerMTok: 5000000;
|
|
271
|
-
readonly cachedInputPerMTok: 25000;
|
|
272
|
-
readonly cachedWriteInputPerMTok: 1250000;
|
|
273
|
-
};
|
|
274
|
-
readonly "claude-fable-5": {
|
|
275
|
-
readonly kind: "flat";
|
|
276
|
-
readonly inputPerMTok: 1000000;
|
|
277
|
-
readonly outputPerMTok: 5000000;
|
|
278
|
-
readonly cachedInputPerMTok: 100000;
|
|
279
|
-
readonly cachedWriteInputPerMTok: 1250000;
|
|
280
|
-
};
|
|
281
|
-
readonly "claude-opus-5-5": {
|
|
282
|
-
readonly kind: "flat";
|
|
283
|
-
readonly inputPerMTok: 400000;
|
|
284
|
-
readonly outputPerMTok: 2000000;
|
|
285
|
-
readonly cachedInputPerMTok: 20000;
|
|
286
|
-
readonly cachedWriteInputPerMTok: 500000;
|
|
287
|
-
};
|
|
288
|
-
readonly "claude-opus-5": {
|
|
289
|
-
readonly kind: "flat";
|
|
290
|
-
readonly inputPerMTok: 500000;
|
|
291
|
-
readonly outputPerMTok: 2500000;
|
|
292
|
-
readonly cachedInputPerMTok: 50000;
|
|
293
|
-
readonly cachedWriteInputPerMTok: 625000;
|
|
294
|
-
};
|
|
295
|
-
readonly "claude-opus-4-8": {
|
|
296
|
-
readonly kind: "flat";
|
|
297
|
-
readonly inputPerMTok: 500000;
|
|
298
|
-
readonly outputPerMTok: 2500000;
|
|
299
|
-
readonly cachedInputPerMTok: 50000;
|
|
300
|
-
readonly cachedWriteInputPerMTok: 625000;
|
|
301
|
-
};
|
|
302
|
-
readonly "claude-opus-4-7": {
|
|
303
|
-
readonly kind: "flat";
|
|
304
|
-
readonly inputPerMTok: 500000;
|
|
305
|
-
readonly outputPerMTok: 2500000;
|
|
306
|
-
readonly cachedInputPerMTok: 50000;
|
|
307
|
-
readonly cachedWriteInputPerMTok: 625000;
|
|
308
|
-
};
|
|
309
|
-
readonly "claude-sonnet-4-6": {
|
|
310
|
-
readonly kind: "flat";
|
|
311
|
-
readonly inputPerMTok: 300000;
|
|
312
|
-
readonly outputPerMTok: 1500000;
|
|
313
|
-
readonly cachedInputPerMTok: 30000;
|
|
314
|
-
readonly cachedWriteInputPerMTok: 375000;
|
|
315
|
-
};
|
|
316
|
-
readonly "claude-opus-4-6": {
|
|
317
|
-
readonly kind: "flat";
|
|
318
|
-
readonly inputPerMTok: 500000;
|
|
319
|
-
readonly outputPerMTok: 2500000;
|
|
320
|
-
readonly cachedInputPerMTok: 50000;
|
|
321
|
-
readonly cachedWriteInputPerMTok: 625000;
|
|
322
|
-
};
|
|
323
|
-
readonly "claude-haiku-4-5-20251001": {
|
|
324
|
-
readonly kind: "flat";
|
|
325
|
-
readonly inputPerMTok: 100000;
|
|
326
|
-
readonly outputPerMTok: 500000;
|
|
327
|
-
readonly cachedInputPerMTok: 10000;
|
|
328
|
-
readonly cachedWriteInputPerMTok: 125000;
|
|
329
|
-
};
|
|
330
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": {
|
|
331
|
-
readonly kind: "flat";
|
|
332
|
-
readonly inputPerMTok: 330000;
|
|
333
|
-
readonly outputPerMTok: 1650000;
|
|
334
|
-
readonly cachedInputPerMTok: 33000;
|
|
335
|
-
readonly cachedWriteInputPerMTok: 412500;
|
|
336
|
-
};
|
|
337
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": {
|
|
338
|
-
readonly kind: "flat";
|
|
339
|
-
readonly inputPerMTok: 110000;
|
|
340
|
-
readonly outputPerMTok: 550000;
|
|
341
|
-
readonly cachedInputPerMTok: 11000;
|
|
342
|
-
readonly cachedWriteInputPerMTok: 137500;
|
|
343
|
-
};
|
|
344
|
-
readonly "us.amazon.nova-pro-v1:0": {
|
|
345
|
-
readonly kind: "flat";
|
|
346
|
-
readonly inputPerMTok: 80000;
|
|
347
|
-
readonly outputPerMTok: 320000;
|
|
348
|
-
readonly cachedInputPerMTok: 20000;
|
|
349
|
-
readonly cachedWriteInputPerMTok: 80000;
|
|
350
|
-
};
|
|
351
|
-
readonly "us.amazon.nova-lite-v1:0": {
|
|
352
|
-
readonly kind: "flat";
|
|
353
|
-
readonly inputPerMTok: 6000;
|
|
354
|
-
readonly outputPerMTok: 24000;
|
|
355
|
-
readonly cachedInputPerMTok: 1500;
|
|
356
|
-
readonly cachedWriteInputPerMTok: 6000;
|
|
357
|
-
};
|
|
358
|
-
readonly "us.amazon.nova-micro-v1:0": {
|
|
359
|
-
readonly kind: "flat";
|
|
360
|
-
readonly inputPerMTok: 3500;
|
|
361
|
-
readonly outputPerMTok: 14000;
|
|
362
|
-
readonly cachedInputPerMTok: 875;
|
|
363
|
-
readonly cachedWriteInputPerMTok: 3500;
|
|
364
|
-
};
|
|
365
|
-
readonly "openai.gpt-oss-120b-1:0": {
|
|
366
|
-
readonly kind: "flat";
|
|
367
|
-
readonly inputPerMTok: 15000;
|
|
368
|
-
readonly outputPerMTok: 60000;
|
|
369
|
-
};
|
|
370
|
-
readonly "openai.gpt-oss-20b-1:0": {
|
|
371
|
-
readonly kind: "flat";
|
|
372
|
-
readonly inputPerMTok: 7000;
|
|
373
|
-
readonly outputPerMTok: 30000;
|
|
374
|
-
};
|
|
375
|
-
readonly "mistral-large-latest": {
|
|
376
|
-
readonly kind: "flat";
|
|
377
|
-
readonly inputPerMTok: 50000;
|
|
378
|
-
readonly outputPerMTok: 150000;
|
|
379
|
-
readonly cachedInputPerMTok: 5000;
|
|
380
|
-
};
|
|
381
|
-
readonly "mistral-medium-latest": {
|
|
382
|
-
readonly kind: "flat";
|
|
383
|
-
readonly inputPerMTok: 150000;
|
|
384
|
-
readonly outputPerMTok: 750000;
|
|
385
|
-
readonly cachedInputPerMTok: 15000;
|
|
386
|
-
};
|
|
387
|
-
readonly "mistral-small-latest": {
|
|
388
|
-
readonly kind: "flat";
|
|
389
|
-
readonly inputPerMTok: 15000;
|
|
390
|
-
readonly outputPerMTok: 60000;
|
|
391
|
-
readonly cachedInputPerMTok: 1500;
|
|
392
|
-
};
|
|
393
|
-
readonly "gemini-2.5-flash": {
|
|
394
|
-
readonly kind: "flat";
|
|
395
|
-
readonly inputPerMTok: 30000;
|
|
396
|
-
readonly outputPerMTok: 250000;
|
|
397
|
-
readonly cachedInputPerMTok: 3000;
|
|
398
|
-
};
|
|
399
|
-
readonly "gemini-2.5-pro": {
|
|
400
|
-
readonly kind: "input-token-tiered";
|
|
401
|
-
readonly inputTokenThreshold: 200000;
|
|
402
|
-
readonly standard: {
|
|
403
|
-
readonly inputPerMTok: 125000;
|
|
404
|
-
readonly outputPerMTok: 1000000;
|
|
405
|
-
readonly cachedInputPerMTok: 12500;
|
|
406
|
-
};
|
|
407
|
-
readonly aboveThreshold: {
|
|
408
|
-
readonly inputPerMTok: 250000;
|
|
409
|
-
readonly outputPerMTok: 1500000;
|
|
410
|
-
readonly cachedInputPerMTok: 25000;
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
readonly "gpt-4o-mini": {
|
|
414
|
-
readonly kind: "flat";
|
|
415
|
-
readonly inputPerMTok: 15000;
|
|
416
|
-
readonly outputPerMTok: 60000;
|
|
417
|
-
readonly cachedInputPerMTok: 7500;
|
|
418
|
-
};
|
|
419
|
-
readonly "gpt-4o": {
|
|
420
|
-
readonly kind: "flat";
|
|
421
|
-
readonly inputPerMTok: 250000;
|
|
422
|
-
readonly outputPerMTok: 1000000;
|
|
423
|
-
readonly cachedInputPerMTok: 125000;
|
|
424
|
-
};
|
|
425
|
-
readonly "us.deepseek.r1-v1:0": {
|
|
426
|
-
readonly kind: "flat";
|
|
427
|
-
readonly inputPerMTok: 135000;
|
|
428
|
-
readonly outputPerMTok: 540000;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
//#endregion
|
|
432
|
-
//#region src/model-rate-policy.d.ts
|
|
433
|
-
export declare const MODELS_DEV_RATE_PROVIDER_BY_CATALOG_PROVIDER: {
|
|
434
|
-
readonly google: "google";
|
|
435
|
-
readonly openai: "openai";
|
|
436
|
-
readonly anthropic: "anthropic";
|
|
437
|
-
readonly bedrock: "amazon-bedrock";
|
|
438
|
-
readonly mistral: "mistral";
|
|
439
|
-
};
|
|
440
|
-
type ModelsDevRateProvider = (typeof MODELS_DEV_RATE_PROVIDER_BY_CATALOG_PROVIDER)[keyof typeof MODELS_DEV_RATE_PROVIDER_BY_CATALOG_PROVIDER];
|
|
441
|
-
/**
|
|
442
|
-
* Explicit source coordinates for non-offered model IDs that remain valid in
|
|
443
|
-
* deployment overrides and usage attribution. Their numeric rates still come
|
|
444
|
-
* exclusively from models.dev.
|
|
445
|
-
*/
|
|
446
|
-
export declare const RETAINED_MODELS_DEV_RATE_ENTRIES: {
|
|
447
|
-
readonly "gemini-2.5-flash": {
|
|
448
|
-
readonly modelId: "gemini-2.5-flash";
|
|
449
|
-
readonly provider: "google";
|
|
450
|
-
};
|
|
451
|
-
readonly "gemini-2.5-pro": {
|
|
452
|
-
readonly modelId: "gemini-2.5-pro";
|
|
453
|
-
readonly provider: "google";
|
|
454
|
-
};
|
|
455
|
-
readonly "gpt-4o-mini": {
|
|
456
|
-
readonly modelId: "gpt-4o-mini";
|
|
457
|
-
readonly provider: "openai";
|
|
458
|
-
};
|
|
459
|
-
readonly "gpt-4o": {
|
|
460
|
-
readonly modelId: "gpt-4o";
|
|
461
|
-
readonly provider: "openai";
|
|
462
|
-
};
|
|
463
|
-
readonly "us.deepseek.r1-v1:0": {
|
|
464
|
-
readonly modelId: "us.deepseek.r1-v1:0";
|
|
465
|
-
readonly provider: "amazon-bedrock";
|
|
466
|
-
};
|
|
467
|
-
};
|
|
468
|
-
/**
|
|
469
|
-
* Exact mappings where Stella uses a provider routing ID while models.dev
|
|
470
|
-
* publishes pricing under the corresponding base model ID. Generation rejects
|
|
471
|
-
* a mapping once models.dev begins publishing the Stella ID directly, so the
|
|
472
|
-
* map is empty whenever upstream covers every offered ID.
|
|
473
|
-
*/
|
|
474
|
-
export declare const MODELS_DEV_RATE_SOURCE_ALIASES: {};
|
|
475
|
-
//#endregion
|
|
476
|
-
//#region src/capabilities-overrides.d.ts
|
|
477
|
-
/**
|
|
478
|
-
* Hand-declared capabilities for offered models that models.dev does
|
|
479
|
-
* not cover. The capability generator
|
|
480
|
-
* (`packages/scripts/src/model-catalog-capabilities-gen.ts`) refuses
|
|
481
|
-
* an override for any model the upstream source covers, so manual
|
|
482
|
-
* data cannot shadow sourced data — this file can only ever fill
|
|
483
|
-
* genuine gaps, each with a dated justification.
|
|
484
|
-
*/
|
|
485
|
-
type CapabilityOverride = {
|
|
486
|
-
documentInput: boolean;
|
|
487
|
-
documentInputReason: string;
|
|
488
|
-
reasoningEfforts: readonly ReasoningEffort[] | null;
|
|
489
|
-
/** The most output tokens one response may carry, from the provider docs. */
|
|
490
|
-
outputTokens: number;
|
|
491
|
-
temperatureSupported: boolean;
|
|
492
|
-
/**
|
|
493
|
-
* Every role sends tool definitions or structured output, so an
|
|
494
|
-
* offered model must accept tools.
|
|
495
|
-
*/
|
|
496
|
-
toolCalling: true;
|
|
497
|
-
/** Why the upstream source cannot answer for this model. Dated. */
|
|
498
|
-
reason: string;
|
|
499
|
-
};
|
|
500
|
-
export declare const CAPABILITY_OVERRIDES: Partial<Record<OfferedBYOKModelId, CapabilityOverride>>;
|
|
501
|
-
type ImageInputOverride = {
|
|
502
|
-
supported: boolean;
|
|
503
|
-
/** Dated correction with an official provider documentation URL. */
|
|
504
|
-
reason: string;
|
|
505
|
-
};
|
|
506
|
-
type ImageInputOverrides = { [TProvider in BYOKProvider]?: Partial<Record<BYOKModelIdByProvider[TProvider], ImageInputOverride>>; };
|
|
507
|
-
/** Only official provider documentation may override input-modality evidence. */
|
|
508
|
-
export declare const IMAGE_INPUT_OVERRIDES: ImageInputOverrides;
|
|
509
|
-
//#endregion
|
|
510
|
-
//#region src/document-input-overrides.d.ts
|
|
511
|
-
type DocumentInputOverride = {
|
|
512
|
-
/** Whether the model accepts a PDF/file content part. */
|
|
513
|
-
supported: boolean;
|
|
514
|
-
/** Why the live catalogue cannot answer correctly. Dated. */
|
|
515
|
-
reason: string;
|
|
516
|
-
};
|
|
517
|
-
/**
|
|
518
|
-
* Reviewed document-input corrections for models.dev records that exist but
|
|
519
|
-
* under-report the provider API's file-input support. The generator rejects an
|
|
520
|
-
* override once upstream agrees, so sourced data takes ownership automatically.
|
|
521
|
-
*/
|
|
522
|
-
export declare const DOCUMENT_INPUT_OVERRIDES: Partial<Record<OfferedBYOKModelId, DocumentInputOverride>>;
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region src/capabilities.gen.d.ts
|
|
525
|
-
/** Every offered provider/model pair has explicit image-input evidence. */
|
|
526
|
-
export declare const MODEL_IMAGE_INPUT_CAPABILITIES: {
|
|
527
|
-
readonly google: {
|
|
528
|
-
readonly "gemini-3.8-flash": "supported";
|
|
529
|
-
readonly "gemini-3.7-flash": "supported";
|
|
530
|
-
readonly "gemini-3.6-flash": "supported";
|
|
531
|
-
readonly "gemini-3.5-flash-lite": "supported";
|
|
532
|
-
readonly "gemini-3.1-pro-preview": "supported";
|
|
533
|
-
readonly "gemini-3.5-flash": "supported";
|
|
534
|
-
readonly "gemini-3.1-flash-lite": "supported";
|
|
535
|
-
};
|
|
536
|
-
readonly openrouter: {
|
|
537
|
-
readonly "openai/gpt-6.1-sol": "supported";
|
|
538
|
-
readonly "openai/gpt-6-astra": "supported";
|
|
539
|
-
readonly "openai/gpt-6-sol": "supported";
|
|
540
|
-
readonly "openai/gpt-6-luna": "supported";
|
|
541
|
-
readonly "openai/gpt-5.6-sol": "supported";
|
|
542
|
-
readonly "openai/gpt-5.6-terra": "supported";
|
|
543
|
-
readonly "openai/gpt-5.6-luna": "supported";
|
|
544
|
-
readonly "google/gemini-3.8-flash": "supported";
|
|
545
|
-
readonly "google/gemini-3.7-flash": "supported";
|
|
546
|
-
readonly "google/gemini-3.6-flash": "supported";
|
|
547
|
-
readonly "google/gemini-3.5-flash-lite": "supported";
|
|
548
|
-
readonly "google/gemini-3.1-pro-preview": "supported";
|
|
549
|
-
readonly "google/gemini-3.5-flash": "supported";
|
|
550
|
-
readonly "google/gemini-3.1-flash-lite": "supported";
|
|
551
|
-
readonly "anthropic/claude-sonnet-5.5": "supported";
|
|
552
|
-
readonly "anthropic/claude-sonnet-5": "supported";
|
|
553
|
-
readonly "anthropic/claude-opus-5": "supported";
|
|
554
|
-
readonly "anthropic/claude-opus-4.8": "supported";
|
|
555
|
-
readonly "anthropic/claude-sonnet-4.6": "supported";
|
|
556
|
-
readonly "openai/gpt-5.5": "supported";
|
|
557
|
-
readonly "openai/gpt-5.4-mini": "supported";
|
|
558
|
-
};
|
|
559
|
-
readonly openai: {
|
|
560
|
-
readonly "gpt-6.1-sol": "supported";
|
|
561
|
-
readonly "gpt-6-astra": "supported";
|
|
562
|
-
readonly "gpt-6-sol": "supported";
|
|
563
|
-
readonly "gpt-6-luna": "supported";
|
|
564
|
-
readonly "gpt-5.6": "supported";
|
|
565
|
-
readonly "gpt-5.6-terra": "supported";
|
|
566
|
-
readonly "gpt-5.6-luna": "supported";
|
|
567
|
-
readonly "gpt-5.5": "supported";
|
|
568
|
-
readonly "gpt-5.4": "supported";
|
|
569
|
-
readonly "gpt-5.4-mini": "supported";
|
|
570
|
-
readonly "gpt-5.4-nano": "supported";
|
|
571
|
-
readonly "gpt-5.2": "supported";
|
|
572
|
-
};
|
|
573
|
-
readonly anthropic: {
|
|
574
|
-
readonly "claude-sonnet-5-5": "supported";
|
|
575
|
-
readonly "claude-sonnet-5": "supported";
|
|
576
|
-
readonly "claude-fable-5-1": "supported";
|
|
577
|
-
readonly "claude-fable-5": "supported";
|
|
578
|
-
readonly "claude-opus-5-5": "supported";
|
|
579
|
-
readonly "claude-opus-5": "supported";
|
|
580
|
-
readonly "claude-opus-4-8": "supported";
|
|
581
|
-
readonly "claude-opus-4-7": "supported";
|
|
582
|
-
readonly "claude-sonnet-4-6": "supported";
|
|
583
|
-
readonly "claude-opus-4-6": "supported";
|
|
584
|
-
readonly "claude-haiku-4-5-20251001": "supported";
|
|
585
|
-
};
|
|
586
|
-
readonly bedrock: {
|
|
587
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": "supported";
|
|
588
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": "supported";
|
|
589
|
-
readonly "us.amazon.nova-pro-v1:0": "supported";
|
|
590
|
-
readonly "us.amazon.nova-lite-v1:0": "supported";
|
|
591
|
-
readonly "us.amazon.nova-micro-v1:0": "unsupported";
|
|
592
|
-
readonly "openai.gpt-oss-120b-1:0": "unsupported";
|
|
593
|
-
readonly "openai.gpt-oss-20b-1:0": "unsupported";
|
|
594
|
-
};
|
|
595
|
-
readonly mistral: {
|
|
596
|
-
readonly "mistral-large-latest": "supported";
|
|
597
|
-
readonly "mistral-medium-latest": "supported";
|
|
598
|
-
readonly "mistral-small-latest": "supported";
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
/**
|
|
602
|
-
* Reasoning-effort values each offered model accepts, `null` when the
|
|
603
|
-
* model exposes no effort-style reasoning control. A missing `"none"`
|
|
604
|
-
* means the model's reasoning cannot be disabled; consumers must go
|
|
605
|
-
* through `resolveReasoningEffort`.
|
|
606
|
-
*/
|
|
607
|
-
export declare const MODEL_REASONING_EFFORTS: {
|
|
608
|
-
readonly "gemini-3.8-flash": readonly ["low", "medium", "high"];
|
|
609
|
-
readonly "gemini-3.7-flash": readonly ["low", "medium", "high"];
|
|
610
|
-
readonly "gemini-3.6-flash": readonly ["minimal", "low", "medium", "high"];
|
|
611
|
-
readonly "gemini-3.5-flash-lite": readonly ["minimal", "low", "medium", "high"];
|
|
612
|
-
readonly "gemini-3.1-pro-preview": readonly ["low", "medium", "high"];
|
|
613
|
-
readonly "gemini-3.5-flash": readonly ["minimal", "low", "medium", "high"];
|
|
614
|
-
readonly "gemini-3.1-flash-lite": readonly ["minimal", "low", "medium", "high"];
|
|
615
|
-
readonly "openai/gpt-6.1-sol": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
616
|
-
readonly "openai/gpt-6-astra": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
617
|
-
readonly "openai/gpt-6-sol": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
618
|
-
readonly "openai/gpt-6-luna": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
619
|
-
readonly "openai/gpt-5.6-sol": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
620
|
-
readonly "openai/gpt-5.6-terra": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
621
|
-
readonly "openai/gpt-5.6-luna": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
622
|
-
readonly "google/gemini-3.8-flash": readonly ["low", "medium", "high"];
|
|
623
|
-
readonly "google/gemini-3.7-flash": readonly ["low", "medium", "high"];
|
|
624
|
-
readonly "google/gemini-3.6-flash": readonly ["minimal", "low", "medium", "high"];
|
|
625
|
-
readonly "google/gemini-3.5-flash-lite": readonly ["minimal", "low", "medium", "high"];
|
|
626
|
-
readonly "google/gemini-3.1-pro-preview": readonly ["low", "medium", "high"];
|
|
627
|
-
readonly "google/gemini-3.5-flash": readonly ["minimal", "low", "medium", "high"];
|
|
628
|
-
readonly "google/gemini-3.1-flash-lite": readonly ["none", "minimal", "low", "medium", "high"];
|
|
629
|
-
readonly "anthropic/claude-sonnet-5.5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
630
|
-
readonly "anthropic/claude-sonnet-5": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
631
|
-
readonly "anthropic/claude-opus-5": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
632
|
-
readonly "anthropic/claude-opus-4.8": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
633
|
-
readonly "anthropic/claude-sonnet-4.6": readonly ["none", "low", "medium", "high", "max"];
|
|
634
|
-
readonly "openai/gpt-5.5": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
635
|
-
readonly "openai/gpt-5.4-mini": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
636
|
-
readonly "gpt-6.1-sol": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
637
|
-
readonly "gpt-6-astra": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
638
|
-
readonly "gpt-6-sol": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
639
|
-
readonly "gpt-6-luna": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
640
|
-
readonly "gpt-5.6": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
641
|
-
readonly "gpt-5.6-terra": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
642
|
-
readonly "gpt-5.6-luna": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
643
|
-
readonly "gpt-5.5": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
644
|
-
readonly "gpt-5.4": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
645
|
-
readonly "gpt-5.4-mini": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
646
|
-
readonly "gpt-5.4-nano": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
647
|
-
readonly "gpt-5.2": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
648
|
-
readonly "claude-sonnet-5-5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
649
|
-
readonly "claude-sonnet-5": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
650
|
-
readonly "claude-fable-5-1": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
651
|
-
readonly "claude-fable-5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
652
|
-
readonly "claude-opus-5-5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
653
|
-
readonly "claude-opus-5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
654
|
-
readonly "claude-opus-4-8": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
655
|
-
readonly "claude-opus-4-7": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
656
|
-
readonly "claude-sonnet-4-6": readonly ["low", "medium", "high", "max"];
|
|
657
|
-
readonly "claude-opus-4-6": readonly ["low", "medium", "high", "max"];
|
|
658
|
-
readonly "claude-haiku-4-5-20251001": null;
|
|
659
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": null;
|
|
660
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": null;
|
|
661
|
-
readonly "us.amazon.nova-pro-v1:0": null;
|
|
662
|
-
readonly "us.amazon.nova-lite-v1:0": null;
|
|
663
|
-
readonly "us.amazon.nova-micro-v1:0": null;
|
|
664
|
-
readonly "openai.gpt-oss-120b-1:0": readonly ["low", "medium", "high"];
|
|
665
|
-
readonly "openai.gpt-oss-20b-1:0": readonly ["low", "medium", "high"];
|
|
666
|
-
readonly "mistral-large-latest": null;
|
|
667
|
-
readonly "mistral-medium-latest": readonly ["none", "high"];
|
|
668
|
-
readonly "mistral-small-latest": readonly ["none", "high"];
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* Concrete provider-default effort where the upstream catalogue publishes
|
|
672
|
-
* one. OpenRouter is the source today; null means the provider does not expose
|
|
673
|
-
* a truthful named default, so clients must retain a separate Default choice.
|
|
674
|
-
*/
|
|
675
|
-
export declare const MODEL_DEFAULT_REASONING_EFFORTS: {
|
|
676
|
-
readonly "gemini-3.8-flash": null;
|
|
677
|
-
readonly "gemini-3.7-flash": null;
|
|
678
|
-
readonly "gemini-3.6-flash": null;
|
|
679
|
-
readonly "gemini-3.5-flash-lite": null;
|
|
680
|
-
readonly "gemini-3.1-pro-preview": null;
|
|
681
|
-
readonly "gemini-3.5-flash": null;
|
|
682
|
-
readonly "gemini-3.1-flash-lite": null;
|
|
683
|
-
readonly "openai/gpt-6.1-sol": "medium";
|
|
684
|
-
readonly "openai/gpt-6-astra": "medium";
|
|
685
|
-
readonly "openai/gpt-6-sol": "medium";
|
|
686
|
-
readonly "openai/gpt-6-luna": "medium";
|
|
687
|
-
readonly "openai/gpt-5.6-sol": "medium";
|
|
688
|
-
readonly "openai/gpt-5.6-terra": "medium";
|
|
689
|
-
readonly "openai/gpt-5.6-luna": "medium";
|
|
690
|
-
readonly "google/gemini-3.8-flash": "medium";
|
|
691
|
-
readonly "google/gemini-3.7-flash": "medium";
|
|
692
|
-
readonly "google/gemini-3.6-flash": "medium";
|
|
693
|
-
readonly "google/gemini-3.5-flash-lite": "minimal";
|
|
694
|
-
readonly "google/gemini-3.1-pro-preview": "medium";
|
|
695
|
-
readonly "google/gemini-3.5-flash": "medium";
|
|
696
|
-
readonly "google/gemini-3.1-flash-lite": "minimal";
|
|
697
|
-
readonly "anthropic/claude-sonnet-5.5": "high";
|
|
698
|
-
readonly "anthropic/claude-sonnet-5": "high";
|
|
699
|
-
readonly "anthropic/claude-opus-5": "high";
|
|
700
|
-
readonly "anthropic/claude-opus-4.8": "high";
|
|
701
|
-
readonly "anthropic/claude-sonnet-4.6": "medium";
|
|
702
|
-
readonly "openai/gpt-5.5": "medium";
|
|
703
|
-
readonly "openai/gpt-5.4-mini": "medium";
|
|
704
|
-
readonly "gpt-6.1-sol": null;
|
|
705
|
-
readonly "gpt-6-astra": null;
|
|
706
|
-
readonly "gpt-6-sol": null;
|
|
707
|
-
readonly "gpt-6-luna": null;
|
|
708
|
-
readonly "gpt-5.6": null;
|
|
709
|
-
readonly "gpt-5.6-terra": null;
|
|
710
|
-
readonly "gpt-5.6-luna": null;
|
|
711
|
-
readonly "gpt-5.5": null;
|
|
712
|
-
readonly "gpt-5.4": null;
|
|
713
|
-
readonly "gpt-5.4-mini": null;
|
|
714
|
-
readonly "gpt-5.4-nano": null;
|
|
715
|
-
readonly "gpt-5.2": null;
|
|
716
|
-
readonly "claude-sonnet-5-5": null;
|
|
717
|
-
readonly "claude-sonnet-5": null;
|
|
718
|
-
readonly "claude-fable-5-1": null;
|
|
719
|
-
readonly "claude-fable-5": null;
|
|
720
|
-
readonly "claude-opus-5-5": null;
|
|
721
|
-
readonly "claude-opus-5": null;
|
|
722
|
-
readonly "claude-opus-4-8": null;
|
|
723
|
-
readonly "claude-opus-4-7": null;
|
|
724
|
-
readonly "claude-sonnet-4-6": null;
|
|
725
|
-
readonly "claude-opus-4-6": null;
|
|
726
|
-
readonly "claude-haiku-4-5-20251001": null;
|
|
727
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": null;
|
|
728
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": null;
|
|
729
|
-
readonly "us.amazon.nova-pro-v1:0": null;
|
|
730
|
-
readonly "us.amazon.nova-lite-v1:0": null;
|
|
731
|
-
readonly "us.amazon.nova-micro-v1:0": null;
|
|
732
|
-
readonly "openai.gpt-oss-120b-1:0": null;
|
|
733
|
-
readonly "openai.gpt-oss-20b-1:0": null;
|
|
734
|
-
readonly "mistral-large-latest": null;
|
|
735
|
-
readonly "mistral-medium-latest": null;
|
|
736
|
-
readonly "mistral-small-latest": null;
|
|
737
|
-
};
|
|
738
|
-
/**
|
|
739
|
-
* Whether stella should emit a `temperature` sampling override.
|
|
740
|
-
* `"omit"` covers rejected, deprecated, and accepted-but-ignored
|
|
741
|
-
* parameters. Consumers must go through `shouldEmitTemperature`.
|
|
742
|
-
*/
|
|
743
|
-
export declare const MODEL_TEMPERATURE_POLICIES: {
|
|
744
|
-
readonly "gemini-3.8-flash": "omit";
|
|
745
|
-
readonly "gemini-3.7-flash": "omit";
|
|
746
|
-
readonly "gemini-3.6-flash": "omit";
|
|
747
|
-
readonly "gemini-3.5-flash-lite": "omit";
|
|
748
|
-
readonly "gemini-3.1-pro-preview": "emit";
|
|
749
|
-
readonly "gemini-3.5-flash": "emit";
|
|
750
|
-
readonly "gemini-3.1-flash-lite": "emit";
|
|
751
|
-
readonly "openai/gpt-6.1-sol": "omit";
|
|
752
|
-
readonly "openai/gpt-6-astra": "omit";
|
|
753
|
-
readonly "openai/gpt-6-sol": "omit";
|
|
754
|
-
readonly "openai/gpt-6-luna": "omit";
|
|
755
|
-
readonly "openai/gpt-5.6-sol": "omit";
|
|
756
|
-
readonly "openai/gpt-5.6-terra": "omit";
|
|
757
|
-
readonly "openai/gpt-5.6-luna": "omit";
|
|
758
|
-
readonly "google/gemini-3.8-flash": "omit";
|
|
759
|
-
readonly "google/gemini-3.7-flash": "omit";
|
|
760
|
-
readonly "google/gemini-3.6-flash": "omit";
|
|
761
|
-
readonly "google/gemini-3.5-flash-lite": "omit";
|
|
762
|
-
readonly "google/gemini-3.1-pro-preview": "emit";
|
|
763
|
-
readonly "google/gemini-3.5-flash": "emit";
|
|
764
|
-
readonly "google/gemini-3.1-flash-lite": "emit";
|
|
765
|
-
readonly "anthropic/claude-sonnet-5.5": "emit";
|
|
766
|
-
readonly "anthropic/claude-sonnet-5": "omit";
|
|
767
|
-
readonly "anthropic/claude-opus-5": "emit";
|
|
768
|
-
readonly "anthropic/claude-opus-4.8": "emit";
|
|
769
|
-
readonly "anthropic/claude-sonnet-4.6": "emit";
|
|
770
|
-
readonly "openai/gpt-5.5": "omit";
|
|
771
|
-
readonly "openai/gpt-5.4-mini": "omit";
|
|
772
|
-
readonly "gpt-6.1-sol": "omit";
|
|
773
|
-
readonly "gpt-6-astra": "omit";
|
|
774
|
-
readonly "gpt-6-sol": "omit";
|
|
775
|
-
readonly "gpt-6-luna": "omit";
|
|
776
|
-
readonly "gpt-5.6": "omit";
|
|
777
|
-
readonly "gpt-5.6-terra": "omit";
|
|
778
|
-
readonly "gpt-5.6-luna": "omit";
|
|
779
|
-
readonly "gpt-5.5": "omit";
|
|
780
|
-
readonly "gpt-5.4": "emit";
|
|
781
|
-
readonly "gpt-5.4-mini": "emit";
|
|
782
|
-
readonly "gpt-5.4-nano": "emit";
|
|
783
|
-
readonly "gpt-5.2": "emit";
|
|
784
|
-
readonly "claude-sonnet-5-5": "omit";
|
|
785
|
-
readonly "claude-sonnet-5": "omit";
|
|
786
|
-
readonly "claude-fable-5-1": "omit";
|
|
787
|
-
readonly "claude-fable-5": "omit";
|
|
788
|
-
readonly "claude-opus-5-5": "omit";
|
|
789
|
-
readonly "claude-opus-5": "omit";
|
|
790
|
-
readonly "claude-opus-4-8": "omit";
|
|
791
|
-
readonly "claude-opus-4-7": "omit";
|
|
792
|
-
readonly "claude-sonnet-4-6": "emit";
|
|
793
|
-
readonly "claude-opus-4-6": "emit";
|
|
794
|
-
readonly "claude-haiku-4-5-20251001": "emit";
|
|
795
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": "emit";
|
|
796
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": "emit";
|
|
797
|
-
readonly "us.amazon.nova-pro-v1:0": "emit";
|
|
798
|
-
readonly "us.amazon.nova-lite-v1:0": "emit";
|
|
799
|
-
readonly "us.amazon.nova-micro-v1:0": "emit";
|
|
800
|
-
readonly "openai.gpt-oss-120b-1:0": "emit";
|
|
801
|
-
readonly "openai.gpt-oss-20b-1:0": "emit";
|
|
802
|
-
readonly "mistral-large-latest": "emit";
|
|
803
|
-
readonly "mistral-medium-latest": "emit";
|
|
804
|
-
readonly "mistral-small-latest": "emit";
|
|
805
|
-
};
|
|
806
|
-
/**
|
|
807
|
-
* The most output tokens one response of each offered model may carry
|
|
808
|
-
* (models.dev `limit.output`). Consumers must go through
|
|
809
|
-
* `getOutputTokenLimit`.
|
|
810
|
-
*/
|
|
811
|
-
export declare const MODEL_OUTPUT_TOKEN_LIMITS: {
|
|
812
|
-
readonly "gemini-3.8-flash": 65536;
|
|
813
|
-
readonly "gemini-3.7-flash": 65536;
|
|
814
|
-
readonly "gemini-3.6-flash": 65536;
|
|
815
|
-
readonly "gemini-3.5-flash-lite": 65536;
|
|
816
|
-
readonly "gemini-3.1-pro-preview": 65536;
|
|
817
|
-
readonly "gemini-3.5-flash": 65536;
|
|
818
|
-
readonly "gemini-3.1-flash-lite": 65536;
|
|
819
|
-
readonly "openai/gpt-6.1-sol": 128000;
|
|
820
|
-
readonly "openai/gpt-6-astra": 128000;
|
|
821
|
-
readonly "openai/gpt-6-sol": 128000;
|
|
822
|
-
readonly "openai/gpt-6-luna": 128000;
|
|
823
|
-
readonly "openai/gpt-5.6-sol": 128000;
|
|
824
|
-
readonly "openai/gpt-5.6-terra": 128000;
|
|
825
|
-
readonly "openai/gpt-5.6-luna": 128000;
|
|
826
|
-
readonly "google/gemini-3.8-flash": 65536;
|
|
827
|
-
readonly "google/gemini-3.7-flash": 65536;
|
|
828
|
-
readonly "google/gemini-3.6-flash": 65536;
|
|
829
|
-
readonly "google/gemini-3.5-flash-lite": 65536;
|
|
830
|
-
readonly "google/gemini-3.1-pro-preview": 65536;
|
|
831
|
-
readonly "google/gemini-3.5-flash": 65536;
|
|
832
|
-
readonly "google/gemini-3.1-flash-lite": 65536;
|
|
833
|
-
readonly "anthropic/claude-sonnet-5.5": 128000;
|
|
834
|
-
readonly "anthropic/claude-sonnet-5": 128000;
|
|
835
|
-
readonly "anthropic/claude-opus-5": 128000;
|
|
836
|
-
readonly "anthropic/claude-opus-4.8": 128000;
|
|
837
|
-
readonly "anthropic/claude-sonnet-4.6": 128000;
|
|
838
|
-
readonly "openai/gpt-5.5": 128000;
|
|
839
|
-
readonly "openai/gpt-5.4-mini": 128000;
|
|
840
|
-
readonly "gpt-6.1-sol": 128000;
|
|
841
|
-
readonly "gpt-6-astra": 128000;
|
|
842
|
-
readonly "gpt-6-sol": 128000;
|
|
843
|
-
readonly "gpt-6-luna": 128000;
|
|
844
|
-
readonly "gpt-5.6": 128000;
|
|
845
|
-
readonly "gpt-5.6-terra": 128000;
|
|
846
|
-
readonly "gpt-5.6-luna": 128000;
|
|
847
|
-
readonly "gpt-5.5": 128000;
|
|
848
|
-
readonly "gpt-5.4": 128000;
|
|
849
|
-
readonly "gpt-5.4-mini": 128000;
|
|
850
|
-
readonly "gpt-5.4-nano": 128000;
|
|
851
|
-
readonly "gpt-5.2": 128000;
|
|
852
|
-
readonly "claude-sonnet-5-5": 128000;
|
|
853
|
-
readonly "claude-sonnet-5": 128000;
|
|
854
|
-
readonly "claude-fable-5-1": 128000;
|
|
855
|
-
readonly "claude-fable-5": 128000;
|
|
856
|
-
readonly "claude-opus-5-5": 128000;
|
|
857
|
-
readonly "claude-opus-5": 128000;
|
|
858
|
-
readonly "claude-opus-4-8": 128000;
|
|
859
|
-
readonly "claude-opus-4-7": 128000;
|
|
860
|
-
readonly "claude-sonnet-4-6": 128000;
|
|
861
|
-
readonly "claude-opus-4-6": 128000;
|
|
862
|
-
readonly "claude-haiku-4-5-20251001": 64000;
|
|
863
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": 64000;
|
|
864
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": 64000;
|
|
865
|
-
readonly "us.amazon.nova-pro-v1:0": 10000;
|
|
866
|
-
readonly "us.amazon.nova-lite-v1:0": 10000;
|
|
867
|
-
readonly "us.amazon.nova-micro-v1:0": 10000;
|
|
868
|
-
readonly "openai.gpt-oss-120b-1:0": 128000;
|
|
869
|
-
readonly "openai.gpt-oss-20b-1:0": 128000;
|
|
870
|
-
readonly "mistral-large-latest": 262144;
|
|
871
|
-
readonly "mistral-medium-latest": 262144;
|
|
872
|
-
readonly "mistral-small-latest": 256000;
|
|
873
|
-
};
|
|
874
|
-
//#endregion
|
|
875
|
-
//#region src/index.d.ts
|
|
876
|
-
/**
|
|
877
|
-
* Logical model roles. Call sites declare *what* they need, not
|
|
878
|
-
* *which* model to use.
|
|
879
|
-
*
|
|
880
|
-
* - fast: classification, extraction, short generation
|
|
881
|
-
* - chat: conversational with tool use and streaming
|
|
882
|
-
* - reasoning: complex multi-step legal analysis
|
|
883
|
-
* - pdf: native PDF/image understanding
|
|
884
|
-
*/
|
|
885
|
-
export declare const MODEL_ROLES: readonly ["fast", "chat", "reasoning", "pdf"];
|
|
886
|
-
export type ModelRole = (typeof MODEL_ROLES)[number];
|
|
887
|
-
export declare const TEMPERATURE_POLICIES: readonly ["emit", "omit"];
|
|
888
|
-
export type TemperaturePolicy = (typeof TEMPERATURE_POLICIES)[number];
|
|
889
|
-
export declare const IMAGE_INPUT_CAPABILITIES: readonly ["supported", "unsupported", "unknown"];
|
|
890
|
-
export type ImageInputCapability = (typeof IMAGE_INPUT_CAPABILITIES)[number];
|
|
891
|
-
export declare const STREAMING_TOOL_USE_SUPPORTS: readonly ["supported", "unsupported"];
|
|
892
|
-
export type StreamingToolUseSupport = (typeof STREAMING_TOOL_USE_SUPPORTS)[number];
|
|
893
|
-
export declare const AI_PROVIDERS: readonly ["google", "openrouter", "openai", "azure_foundry", "anthropic", "bedrock", "mistral", "openai_compatible", "huggingface"];
|
|
894
|
-
export type AIProvider = (typeof AI_PROVIDERS)[number];
|
|
895
|
-
declare const AI_PROVIDER_ADAPTER_KIND: {
|
|
896
|
-
readonly google: "tanstack";
|
|
897
|
-
readonly openrouter: "tanstack";
|
|
898
|
-
readonly openai: "tanstack";
|
|
899
|
-
readonly azure_foundry: "custom";
|
|
900
|
-
readonly anthropic: "tanstack";
|
|
901
|
-
readonly bedrock: "tanstack";
|
|
902
|
-
readonly mistral: "tanstack";
|
|
903
|
-
readonly openai_compatible: "custom";
|
|
904
|
-
readonly huggingface: "custom";
|
|
905
|
-
};
|
|
906
|
-
export type TanStackAIProvider = { [TProvider in AIProvider]: (typeof AI_PROVIDER_ADAPTER_KIND)[TProvider] extends "tanstack" ? TProvider : never; }[AIProvider];
|
|
907
|
-
export declare const TANSTACK_AI_PROVIDERS: readonly ["google", "openrouter", "openai", "anthropic", "bedrock", "mistral"];
|
|
908
|
-
export declare const MODEL_CATALOG_PROVIDER_KIND: {
|
|
909
|
-
readonly google: "first-party";
|
|
910
|
-
readonly openrouter: "aggregator";
|
|
911
|
-
readonly openai: "first-party";
|
|
912
|
-
readonly anthropic: "first-party";
|
|
913
|
-
readonly bedrock: "platform";
|
|
914
|
-
readonly mistral: "first-party";
|
|
915
|
-
};
|
|
916
|
-
/** Providers whose picker IDs map directly to public first-party catalogs. */
|
|
917
|
-
export type FirstPartyModelProvider = { [TProvider in TanStackAIProvider]: (typeof MODEL_CATALOG_PROVIDER_KIND)[TProvider] extends "first-party" ? TProvider : never; }[TanStackAIProvider];
|
|
918
|
-
declare const FIRST_PARTY_MODEL_PROVIDER_VALUES: readonly ["google", "openai", "anthropic", "mistral"];
|
|
919
|
-
/**
|
|
920
|
-
* Runtime form of the first-party provider union. The conditional annotation
|
|
921
|
-
* makes adding a first-party policy without adding its discovery implementation
|
|
922
|
-
* a compile error.
|
|
923
|
-
*/
|
|
924
|
-
export declare const FIRST_PARTY_MODEL_PROVIDERS: Exclude<FirstPartyModelProvider, (typeof FIRST_PARTY_MODEL_PROVIDER_VALUES)[number]> extends never ? typeof FIRST_PARTY_MODEL_PROVIDER_VALUES : never;
|
|
925
|
-
/**
|
|
926
|
-
* Per-role default model IDs for the BYOK-capable cloud providers.
|
|
927
|
-
* Shared between the instance default table (`DEFAULT_MODELS`) and the
|
|
928
|
-
* settings-UI default selection, so a default is defined exactly once.
|
|
929
|
-
*/
|
|
930
|
-
export declare const BYOK_DEFAULT_MODELS: {
|
|
931
|
-
readonly google: {
|
|
932
|
-
readonly fast: "gemini-3.8-flash";
|
|
933
|
-
readonly chat: "gemini-3.8-flash";
|
|
934
|
-
readonly reasoning: "gemini-3.8-flash";
|
|
935
|
-
readonly pdf: "gemini-3.8-flash";
|
|
936
|
-
};
|
|
937
|
-
readonly openrouter: {
|
|
938
|
-
readonly fast: "openai/gpt-6-luna";
|
|
939
|
-
readonly chat: "openai/gpt-6-sol";
|
|
940
|
-
readonly reasoning: "openai/gpt-6-sol";
|
|
941
|
-
readonly pdf: "openai/gpt-6-sol";
|
|
942
|
-
};
|
|
943
|
-
readonly openai: {
|
|
944
|
-
readonly fast: "gpt-6-luna";
|
|
945
|
-
readonly chat: "gpt-6-sol";
|
|
946
|
-
readonly reasoning: "gpt-6-sol";
|
|
947
|
-
readonly pdf: "gpt-6-sol";
|
|
948
|
-
};
|
|
949
|
-
readonly anthropic: {
|
|
950
|
-
readonly fast: "claude-opus-5-5";
|
|
951
|
-
readonly chat: "claude-opus-5-5";
|
|
952
|
-
readonly reasoning: "claude-opus-5-5";
|
|
953
|
-
readonly pdf: "claude-opus-5-5";
|
|
954
|
-
};
|
|
955
|
-
readonly bedrock: {
|
|
956
|
-
readonly fast: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
957
|
-
readonly chat: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
958
|
-
readonly reasoning: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
959
|
-
readonly pdf: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
960
|
-
};
|
|
961
|
-
readonly mistral: {
|
|
962
|
-
readonly fast: "mistral-small-latest";
|
|
963
|
-
readonly chat: "mistral-medium-latest";
|
|
964
|
-
readonly reasoning: "mistral-medium-latest";
|
|
965
|
-
readonly pdf: "mistral-large-latest";
|
|
966
|
-
};
|
|
967
|
-
};
|
|
968
|
-
/**
|
|
969
|
-
* Instance-level default model IDs per provider. Extends the BYOK
|
|
970
|
-
* defaults with the providers that only the instance path uses
|
|
971
|
-
* (custom deployments and OpenAI-compatible endpoints).
|
|
972
|
-
*/
|
|
973
|
-
export declare const DEFAULT_MODELS: {
|
|
974
|
-
readonly azure_foundry: {
|
|
975
|
-
readonly fast: "gpt-5.6-luna";
|
|
976
|
-
readonly chat: "gpt-5.6-terra";
|
|
977
|
-
readonly reasoning: "gpt-5.6-terra";
|
|
978
|
-
readonly pdf: "gpt-5.6-terra";
|
|
979
|
-
};
|
|
980
|
-
readonly openai_compatible: {
|
|
981
|
-
readonly fast: "default";
|
|
982
|
-
readonly chat: "default";
|
|
983
|
-
readonly reasoning: "default";
|
|
984
|
-
readonly pdf: "default";
|
|
985
|
-
};
|
|
986
|
-
readonly huggingface: {
|
|
987
|
-
readonly fast: "speakleash/Bielik-1.5B-v3.0-Instruct";
|
|
988
|
-
readonly chat: "speakleash/Bielik-11B-v2.3-Instruct";
|
|
989
|
-
readonly reasoning: "speakleash/Bielik-11B-v2.3-Instruct";
|
|
990
|
-
readonly pdf: "speakleash/Bielik-11B-v2.3-Instruct";
|
|
991
|
-
};
|
|
992
|
-
readonly google: {
|
|
993
|
-
readonly fast: "gemini-3.8-flash";
|
|
994
|
-
readonly chat: "gemini-3.8-flash";
|
|
995
|
-
readonly reasoning: "gemini-3.8-flash";
|
|
996
|
-
readonly pdf: "gemini-3.8-flash";
|
|
997
|
-
};
|
|
998
|
-
readonly openrouter: {
|
|
999
|
-
readonly fast: "openai/gpt-6-luna";
|
|
1000
|
-
readonly chat: "openai/gpt-6-sol";
|
|
1001
|
-
readonly reasoning: "openai/gpt-6-sol";
|
|
1002
|
-
readonly pdf: "openai/gpt-6-sol";
|
|
1003
|
-
};
|
|
1004
|
-
readonly openai: {
|
|
1005
|
-
readonly fast: "gpt-6-luna";
|
|
1006
|
-
readonly chat: "gpt-6-sol";
|
|
1007
|
-
readonly reasoning: "gpt-6-sol";
|
|
1008
|
-
readonly pdf: "gpt-6-sol";
|
|
1009
|
-
};
|
|
1010
|
-
readonly anthropic: {
|
|
1011
|
-
readonly fast: "claude-opus-5-5";
|
|
1012
|
-
readonly chat: "claude-opus-5-5";
|
|
1013
|
-
readonly reasoning: "claude-opus-5-5";
|
|
1014
|
-
readonly pdf: "claude-opus-5-5";
|
|
1015
|
-
};
|
|
1016
|
-
readonly bedrock: {
|
|
1017
|
-
readonly fast: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
1018
|
-
readonly chat: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
1019
|
-
readonly reasoning: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
1020
|
-
readonly pdf: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
1021
|
-
};
|
|
1022
|
-
readonly mistral: {
|
|
1023
|
-
readonly fast: "mistral-small-latest";
|
|
1024
|
-
readonly chat: "mistral-medium-latest";
|
|
1025
|
-
readonly reasoning: "mistral-medium-latest";
|
|
1026
|
-
readonly pdf: "mistral-large-latest";
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
/**
|
|
1030
|
-
* BYOK-offered model IDs per provider — the curated catalog users pick
|
|
1031
|
-
* from in org settings, and the server-side allowlist the API enforces.
|
|
1032
|
-
* The frontend list is not a security boundary; this is what the API
|
|
1033
|
-
* accepts.
|
|
1034
|
-
*
|
|
1035
|
-
* Limited to providers the TanStack AI integration supports for BYOK.
|
|
1036
|
-
* Providers without a first-class TanStack adapter path are intentionally
|
|
1037
|
-
* not accepted at this boundary.
|
|
1038
|
-
*/
|
|
1039
|
-
export declare const BYOK_MODEL_OPTIONS: {
|
|
1040
|
-
readonly google: readonly ["gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3.5-flash", "gemini-3.1-flash-lite"];
|
|
1041
|
-
readonly anthropic: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1042
|
-
readonly openai: readonly [...("gpt-6-astra" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.6" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-6.1-sol")[], "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.2"];
|
|
1043
|
-
readonly openrouter: readonly [...("openai/gpt-6-astra" | "openai/gpt-6-sol" | "openai/gpt-6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra" | "openai/gpt-5.6-luna" | "openai/gpt-6.1-sol")[], "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5.5", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1044
|
-
readonly bedrock: readonly ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "us.anthropic.claude-haiku-4-5-20251001-v1:0", "us.amazon.nova-pro-v1:0", "us.amazon.nova-lite-v1:0", "us.amazon.nova-micro-v1:0", "openai.gpt-oss-120b-1:0", "openai.gpt-oss-20b-1:0"];
|
|
1045
|
-
readonly mistral: readonly ["mistral-large-latest", "mistral-medium-latest", "mistral-small-latest"];
|
|
1046
|
-
};
|
|
1047
|
-
export type BYOKProvider = keyof typeof BYOK_MODEL_OPTIONS;
|
|
1048
|
-
export type BYOKModelIdByProvider = { [TProvider in BYOKProvider]: (typeof BYOK_MODEL_OPTIONS)[TProvider][number]; };
|
|
1049
|
-
export type OfferedBYOKModelId = BYOKModelIdByProvider[BYOKProvider];
|
|
1050
|
-
export type ModelDisplayMetadata = {
|
|
1051
|
-
/** Human-readable product name; model names are trademarks and stay untranslated. */
|
|
1052
|
-
displayName: string;
|
|
1053
|
-
/** Brand mark to show. This may differ from the routing provider. */
|
|
1054
|
-
iconProvider: BYOKProvider;
|
|
1055
|
-
};
|
|
1056
|
-
/**
|
|
1057
|
-
* Presentation metadata for every offered model. Keeping this exhaustive beside
|
|
1058
|
-
* the allowlist prevents a newly offered model from leaking a raw provider ID
|
|
1059
|
-
* into user-facing pickers. OpenRouter entries deliberately carry their model
|
|
1060
|
-
* creator's icon while their routing provider remains available separately.
|
|
1061
|
-
*/
|
|
1062
|
-
export declare const MODEL_DISPLAY_METADATA: {
|
|
1063
|
-
readonly "gemini-3.8-flash": {
|
|
1064
|
-
readonly displayName: "Gemini 3.8 Flash";
|
|
1065
|
-
readonly iconProvider: "google";
|
|
1066
|
-
};
|
|
1067
|
-
readonly "gemini-3.7-flash": {
|
|
1068
|
-
readonly displayName: "Gemini 3.7 Flash";
|
|
1069
|
-
readonly iconProvider: "google";
|
|
1070
|
-
};
|
|
1071
|
-
readonly "gemini-3.6-flash": {
|
|
1072
|
-
readonly displayName: "Gemini 3.6 Flash";
|
|
1073
|
-
readonly iconProvider: "google";
|
|
1074
|
-
};
|
|
1075
|
-
readonly "gemini-3.5-flash-lite": {
|
|
1076
|
-
readonly displayName: "Gemini 3.5 Flash Lite";
|
|
1077
|
-
readonly iconProvider: "google";
|
|
1078
|
-
};
|
|
1079
|
-
readonly "gemini-3.1-pro-preview": {
|
|
1080
|
-
readonly displayName: "Gemini 3.1 Pro Preview";
|
|
1081
|
-
readonly iconProvider: "google";
|
|
1082
|
-
};
|
|
1083
|
-
readonly "gemini-3.5-flash": {
|
|
1084
|
-
readonly displayName: "Gemini 3.5 Flash";
|
|
1085
|
-
readonly iconProvider: "google";
|
|
1086
|
-
};
|
|
1087
|
-
readonly "gemini-3.1-flash-lite": {
|
|
1088
|
-
readonly displayName: "Gemini 3.1 Flash Lite";
|
|
1089
|
-
readonly iconProvider: "google";
|
|
1090
|
-
};
|
|
1091
|
-
readonly "claude-sonnet-5-5": {
|
|
1092
|
-
readonly displayName: "Claude Sonnet 5.5";
|
|
1093
|
-
readonly iconProvider: "anthropic";
|
|
1094
|
-
};
|
|
1095
|
-
readonly "claude-sonnet-5": {
|
|
1096
|
-
readonly displayName: "Claude Sonnet 5";
|
|
1097
|
-
readonly iconProvider: "anthropic";
|
|
1098
|
-
};
|
|
1099
|
-
readonly "claude-fable-5-1": {
|
|
1100
|
-
readonly displayName: "Claude Fable 5.1";
|
|
1101
|
-
readonly iconProvider: "anthropic";
|
|
1102
|
-
};
|
|
1103
|
-
readonly "claude-fable-5": {
|
|
1104
|
-
readonly displayName: "Claude Fable 5";
|
|
1105
|
-
readonly iconProvider: "anthropic";
|
|
1106
|
-
};
|
|
1107
|
-
readonly "claude-opus-5-5": {
|
|
1108
|
-
readonly displayName: "Claude Opus 5.5";
|
|
1109
|
-
readonly iconProvider: "anthropic";
|
|
1110
|
-
};
|
|
1111
|
-
readonly "claude-opus-5": {
|
|
1112
|
-
readonly displayName: "Claude Opus 5";
|
|
1113
|
-
readonly iconProvider: "anthropic";
|
|
1114
|
-
};
|
|
1115
|
-
readonly "claude-opus-4-8": {
|
|
1116
|
-
readonly displayName: "Claude Opus 4.8";
|
|
1117
|
-
readonly iconProvider: "anthropic";
|
|
1118
|
-
};
|
|
1119
|
-
readonly "claude-opus-4-7": {
|
|
1120
|
-
readonly displayName: "Claude Opus 4.7";
|
|
1121
|
-
readonly iconProvider: "anthropic";
|
|
1122
|
-
};
|
|
1123
|
-
readonly "claude-sonnet-4-6": {
|
|
1124
|
-
readonly displayName: "Claude Sonnet 4.6";
|
|
1125
|
-
readonly iconProvider: "anthropic";
|
|
1126
|
-
};
|
|
1127
|
-
readonly "claude-opus-4-6": {
|
|
1128
|
-
readonly displayName: "Claude Opus 4.6";
|
|
1129
|
-
readonly iconProvider: "anthropic";
|
|
1130
|
-
};
|
|
1131
|
-
readonly "claude-haiku-4-5-20251001": {
|
|
1132
|
-
readonly displayName: "Claude Haiku 4.5";
|
|
1133
|
-
readonly iconProvider: "anthropic";
|
|
1134
|
-
};
|
|
1135
|
-
readonly "gpt-6.1-sol": {
|
|
1136
|
-
readonly displayName: "GPT-6.1 Sol";
|
|
1137
|
-
readonly iconProvider: "openai";
|
|
1138
|
-
};
|
|
1139
|
-
readonly "gpt-6-astra": {
|
|
1140
|
-
readonly displayName: "GPT-6 Astra";
|
|
1141
|
-
readonly iconProvider: "openai";
|
|
1142
|
-
};
|
|
1143
|
-
readonly "gpt-6-sol": {
|
|
1144
|
-
readonly displayName: "GPT-6 Sol";
|
|
1145
|
-
readonly iconProvider: "openai";
|
|
1146
|
-
};
|
|
1147
|
-
readonly "gpt-6-luna": {
|
|
1148
|
-
readonly displayName: "GPT-6 Luna";
|
|
1149
|
-
readonly iconProvider: "openai";
|
|
1150
|
-
};
|
|
1151
|
-
readonly "gpt-5.6": {
|
|
1152
|
-
readonly displayName: "GPT-5.6 Sol";
|
|
1153
|
-
readonly iconProvider: "openai";
|
|
1154
|
-
};
|
|
1155
|
-
readonly "gpt-5.6-terra": {
|
|
1156
|
-
readonly displayName: "GPT-5.6 Terra";
|
|
1157
|
-
readonly iconProvider: "openai";
|
|
1158
|
-
};
|
|
1159
|
-
readonly "gpt-5.6-luna": {
|
|
1160
|
-
readonly displayName: "GPT-5.6 Luna";
|
|
1161
|
-
readonly iconProvider: "openai";
|
|
1162
|
-
};
|
|
1163
|
-
readonly "gpt-5.5": {
|
|
1164
|
-
readonly displayName: "GPT-5.5";
|
|
1165
|
-
readonly iconProvider: "openai";
|
|
1166
|
-
};
|
|
1167
|
-
readonly "gpt-5.4": {
|
|
1168
|
-
readonly displayName: "GPT-5.4";
|
|
1169
|
-
readonly iconProvider: "openai";
|
|
1170
|
-
};
|
|
1171
|
-
readonly "gpt-5.4-mini": {
|
|
1172
|
-
readonly displayName: "GPT-5.4 Mini";
|
|
1173
|
-
readonly iconProvider: "openai";
|
|
1174
|
-
};
|
|
1175
|
-
readonly "gpt-5.4-nano": {
|
|
1176
|
-
readonly displayName: "GPT-5.4 Nano";
|
|
1177
|
-
readonly iconProvider: "openai";
|
|
1178
|
-
};
|
|
1179
|
-
readonly "gpt-5.2": {
|
|
1180
|
-
readonly displayName: "GPT-5.2";
|
|
1181
|
-
readonly iconProvider: "openai";
|
|
1182
|
-
};
|
|
1183
|
-
readonly "openai/gpt-6.1-sol": {
|
|
1184
|
-
readonly displayName: "GPT-6.1 Sol";
|
|
1185
|
-
readonly iconProvider: "openai";
|
|
1186
|
-
};
|
|
1187
|
-
readonly "openai/gpt-6-astra": {
|
|
1188
|
-
readonly displayName: "GPT-6 Astra";
|
|
1189
|
-
readonly iconProvider: "openai";
|
|
1190
|
-
};
|
|
1191
|
-
readonly "openai/gpt-6-sol": {
|
|
1192
|
-
readonly displayName: "GPT-6 Sol";
|
|
1193
|
-
readonly iconProvider: "openai";
|
|
1194
|
-
};
|
|
1195
|
-
readonly "openai/gpt-6-luna": {
|
|
1196
|
-
readonly displayName: "GPT-6 Luna";
|
|
1197
|
-
readonly iconProvider: "openai";
|
|
1198
|
-
};
|
|
1199
|
-
readonly "openai/gpt-5.6-sol": {
|
|
1200
|
-
readonly displayName: "GPT-5.6 Sol";
|
|
1201
|
-
readonly iconProvider: "openai";
|
|
1202
|
-
};
|
|
1203
|
-
readonly "openai/gpt-5.6-luna": {
|
|
1204
|
-
readonly displayName: "GPT-5.6 Luna";
|
|
1205
|
-
readonly iconProvider: "openai";
|
|
1206
|
-
};
|
|
1207
|
-
readonly "openai/gpt-5.6-terra": {
|
|
1208
|
-
readonly displayName: "GPT-5.6 Terra";
|
|
1209
|
-
readonly iconProvider: "openai";
|
|
1210
|
-
};
|
|
1211
|
-
readonly "google/gemini-3.8-flash": {
|
|
1212
|
-
readonly displayName: "Gemini 3.8 Flash";
|
|
1213
|
-
readonly iconProvider: "google";
|
|
1214
|
-
};
|
|
1215
|
-
readonly "google/gemini-3.7-flash": {
|
|
1216
|
-
readonly displayName: "Gemini 3.7 Flash";
|
|
1217
|
-
readonly iconProvider: "google";
|
|
1218
|
-
};
|
|
1219
|
-
readonly "google/gemini-3.6-flash": {
|
|
1220
|
-
readonly displayName: "Gemini 3.6 Flash";
|
|
1221
|
-
readonly iconProvider: "google";
|
|
1222
|
-
};
|
|
1223
|
-
readonly "google/gemini-3.5-flash-lite": {
|
|
1224
|
-
readonly displayName: "Gemini 3.5 Flash Lite";
|
|
1225
|
-
readonly iconProvider: "google";
|
|
1226
|
-
};
|
|
1227
|
-
readonly "google/gemini-3.1-pro-preview": {
|
|
1228
|
-
readonly displayName: "Gemini 3.1 Pro Preview";
|
|
1229
|
-
readonly iconProvider: "google";
|
|
1230
|
-
};
|
|
1231
|
-
readonly "google/gemini-3.5-flash": {
|
|
1232
|
-
readonly displayName: "Gemini 3.5 Flash";
|
|
1233
|
-
readonly iconProvider: "google";
|
|
1234
|
-
};
|
|
1235
|
-
readonly "google/gemini-3.1-flash-lite": {
|
|
1236
|
-
readonly displayName: "Gemini 3.1 Flash Lite";
|
|
1237
|
-
readonly iconProvider: "google";
|
|
1238
|
-
};
|
|
1239
|
-
readonly "anthropic/claude-sonnet-5.5": {
|
|
1240
|
-
readonly displayName: "Claude Sonnet 5.5";
|
|
1241
|
-
readonly iconProvider: "anthropic";
|
|
1242
|
-
};
|
|
1243
|
-
readonly "anthropic/claude-sonnet-5": {
|
|
1244
|
-
readonly displayName: "Claude Sonnet 5";
|
|
1245
|
-
readonly iconProvider: "anthropic";
|
|
1246
|
-
};
|
|
1247
|
-
readonly "anthropic/claude-opus-5": {
|
|
1248
|
-
readonly displayName: "Claude Opus 5";
|
|
1249
|
-
readonly iconProvider: "anthropic";
|
|
1250
|
-
};
|
|
1251
|
-
readonly "anthropic/claude-opus-4.8": {
|
|
1252
|
-
readonly displayName: "Claude Opus 4.8";
|
|
1253
|
-
readonly iconProvider: "anthropic";
|
|
1254
|
-
};
|
|
1255
|
-
readonly "anthropic/claude-sonnet-4.6": {
|
|
1256
|
-
readonly displayName: "Claude Sonnet 4.6";
|
|
1257
|
-
readonly iconProvider: "anthropic";
|
|
1258
|
-
};
|
|
1259
|
-
readonly "openai/gpt-5.5": {
|
|
1260
|
-
readonly displayName: "GPT-5.5";
|
|
1261
|
-
readonly iconProvider: "openai";
|
|
1262
|
-
};
|
|
1263
|
-
readonly "openai/gpt-5.4-mini": {
|
|
1264
|
-
readonly displayName: "GPT-5.4 Mini";
|
|
1265
|
-
readonly iconProvider: "openai";
|
|
1266
|
-
};
|
|
1267
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": {
|
|
1268
|
-
readonly displayName: "Claude Sonnet 4.5";
|
|
1269
|
-
readonly iconProvider: "anthropic";
|
|
1270
|
-
};
|
|
1271
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": {
|
|
1272
|
-
readonly displayName: "Claude Haiku 4.5";
|
|
1273
|
-
readonly iconProvider: "anthropic";
|
|
1274
|
-
};
|
|
1275
|
-
readonly "us.amazon.nova-pro-v1:0": {
|
|
1276
|
-
readonly displayName: "Amazon Nova Pro";
|
|
1277
|
-
readonly iconProvider: "bedrock";
|
|
1278
|
-
};
|
|
1279
|
-
readonly "us.amazon.nova-lite-v1:0": {
|
|
1280
|
-
readonly displayName: "Amazon Nova Lite";
|
|
1281
|
-
readonly iconProvider: "bedrock";
|
|
1282
|
-
};
|
|
1283
|
-
readonly "us.amazon.nova-micro-v1:0": {
|
|
1284
|
-
readonly displayName: "Amazon Nova Micro";
|
|
1285
|
-
readonly iconProvider: "bedrock";
|
|
1286
|
-
};
|
|
1287
|
-
readonly "openai.gpt-oss-120b-1:0": {
|
|
1288
|
-
readonly displayName: "GPT OSS 120B";
|
|
1289
|
-
readonly iconProvider: "openai";
|
|
1290
|
-
};
|
|
1291
|
-
readonly "openai.gpt-oss-20b-1:0": {
|
|
1292
|
-
readonly displayName: "GPT OSS 20B";
|
|
1293
|
-
readonly iconProvider: "openai";
|
|
1294
|
-
};
|
|
1295
|
-
readonly "mistral-large-latest": {
|
|
1296
|
-
readonly displayName: "Mistral Large";
|
|
1297
|
-
readonly iconProvider: "mistral";
|
|
1298
|
-
};
|
|
1299
|
-
readonly "mistral-medium-latest": {
|
|
1300
|
-
readonly displayName: "Mistral Medium";
|
|
1301
|
-
readonly iconProvider: "mistral";
|
|
1302
|
-
};
|
|
1303
|
-
readonly "mistral-small-latest": {
|
|
1304
|
-
readonly displayName: "Mistral Small";
|
|
1305
|
-
readonly iconProvider: "mistral";
|
|
1306
|
-
};
|
|
1307
|
-
};
|
|
1308
|
-
export declare const getModelDisplayMetadata: (modelId: string) => ModelDisplayMetadata | null;
|
|
1309
|
-
/**
|
|
1310
|
-
* Offered models whose provider API accepts PDF/file content. Generated from
|
|
1311
|
-
* live models.dev input modalities plus dated, reviewed source corrections;
|
|
1312
|
-
* the nightly upstream check rejects drift.
|
|
1313
|
-
*/
|
|
1314
|
-
export declare const BYOK_DOCUMENT_INPUT_MODEL_OPTIONS: {
|
|
1315
|
-
readonly google: readonly ["gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3.5-flash", "gemini-3.1-flash-lite"];
|
|
1316
|
-
readonly openrouter: readonly ["openai/gpt-6.1-sol", "openai/gpt-6-astra", "openai/gpt-6-sol", "openai/gpt-6-luna", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5.5", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1317
|
-
readonly openai: readonly ["gpt-6.1-sol", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.2"];
|
|
1318
|
-
readonly anthropic: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1319
|
-
readonly bedrock: readonly ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "us.anthropic.claude-haiku-4-5-20251001-v1:0", "us.amazon.nova-pro-v1:0", "us.amazon.nova-lite-v1:0"];
|
|
1320
|
-
readonly mistral: readonly [];
|
|
1321
|
-
};
|
|
1322
|
-
/** Unoffered IDs have no entry; offered IDs explicitly include unknown. */
|
|
1323
|
-
export declare const getModelImageInputCapability: ({ provider, modelId }: {
|
|
1324
|
-
provider: BYOKProvider;
|
|
1325
|
-
modelId: string;
|
|
1326
|
-
}) => ImageInputCapability | undefined;
|
|
1327
|
-
export declare const isBYOKProviderRoleSupported: ({ provider, role }: {
|
|
1328
|
-
provider: BYOKProvider;
|
|
1329
|
-
role: ModelRole;
|
|
1330
|
-
}) => boolean;
|
|
1331
|
-
export declare const isBYOKModelRoleSupported: ({ provider, modelId, role }: {
|
|
1332
|
-
provider: BYOKProvider;
|
|
1333
|
-
modelId: string;
|
|
1334
|
-
role: ModelRole;
|
|
1335
|
-
}) => boolean;
|
|
1336
|
-
/**
|
|
1337
|
-
* Models whose provider adapter can receive a PDF `document` content part in a
|
|
1338
|
-
* chat turn without throwing. This is a narrower, runtime question than the
|
|
1339
|
-
* pdf ROLE (`BYOK_DOCUMENT_INPUT_MODEL_OPTIONS`, which curates model selection
|
|
1340
|
-
* for PDF-processing flows): it only asks "will the chat stream survive this
|
|
1341
|
-
* attachment." The Mistral text adapter maps PDF `document` parts to
|
|
1342
|
-
* `document_url`, so its
|
|
1343
|
-
* vision models accept PDF attachments even though Mistral is deliberately not
|
|
1344
|
-
* offered as a pdf-role provider. Mistral's `document_url` takes PDF but NOT
|
|
1345
|
-
* textual documents (docx/txt/csv/md), so those still gate on
|
|
1346
|
-
* `BYOK_DOCUMENT_INPUT_MODEL_OPTIONS` (which excludes Mistral). Superset
|
|
1347
|
-
* invariant: every pdf-role document model also accepts a PDF chat attachment.
|
|
1348
|
-
*/
|
|
1349
|
-
export declare const CHAT_PDF_ATTACHMENT_MODEL_OPTIONS: {
|
|
1350
|
-
readonly mistral: readonly ["mistral-medium-latest", "mistral-small-latest"];
|
|
1351
|
-
readonly google: readonly ["gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3.5-flash", "gemini-3.1-flash-lite"];
|
|
1352
|
-
readonly openrouter: readonly ["openai/gpt-6.1-sol", "openai/gpt-6-astra", "openai/gpt-6-sol", "openai/gpt-6-luna", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5.5", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1353
|
-
readonly openai: readonly ["gpt-6.1-sol", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.2"];
|
|
1354
|
-
readonly anthropic: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1355
|
-
readonly bedrock: readonly ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "us.anthropic.claude-haiku-4-5-20251001-v1:0", "us.amazon.nova-pro-v1:0", "us.amazon.nova-lite-v1:0"];
|
|
1356
|
-
};
|
|
1357
|
-
export declare const isChatPdfAttachmentModelSupported: ({ provider, modelId }: {
|
|
1358
|
-
provider: BYOKProvider;
|
|
1359
|
-
modelId: string;
|
|
1360
|
-
}) => boolean;
|
|
1361
|
-
/**
|
|
1362
|
-
* Resolve a model id that will actually work for this provider+role,
|
|
1363
|
-
* keeping the SAME provider. Returns the caller's model unchanged when
|
|
1364
|
-
* it is still offered; otherwise falls back to the provider's per-role
|
|
1365
|
-
* default (`BYOK_DEFAULT_MODELS`). Returns `null` only when the
|
|
1366
|
-
* provider has no valid model for the role at all — the sole case
|
|
1367
|
-
* today is `mistral` + `pdf`, because the TanStack Mistral adapter
|
|
1368
|
-
* exposes no `document` input modality, so no Mistral model (not even
|
|
1369
|
-
* the default) can serve the PDF role.
|
|
1370
|
-
*
|
|
1371
|
-
* Used to auto-heal org AI configs whose pinned model was removed by a
|
|
1372
|
-
* catalog bump, so generation resolves to a supported model instead of
|
|
1373
|
-
* 400-ing (or forwarding a retired id to the provider).
|
|
1374
|
-
*/
|
|
1375
|
-
export declare const resolveWorkingBYOKModelForRole: ({ provider, modelId, role }: {
|
|
1376
|
-
provider: BYOKProvider;
|
|
1377
|
-
modelId: string;
|
|
1378
|
-
role: ModelRole;
|
|
1379
|
-
}) => string | null;
|
|
1380
|
-
/**
|
|
1381
|
-
* Anthropic models that use the adaptive-thinking request shape
|
|
1382
|
-
* (`thinking: { type: "adaptive" }`). Newer Claude models reject the
|
|
1383
|
-
* legacy budget-based form, so every Opus 4.6+/Sonnet 4.6/Fable entry
|
|
1384
|
-
* offered above must appear here or it will 400 on the reasoning role.
|
|
1385
|
-
*/
|
|
1386
|
-
export declare const ANTHROPIC_ADAPTIVE_THINKING_MODELS: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-opus-5", "claude-sonnet-4-6", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8", "claude-fable-5", "claude-fable-5-1", "claude-opus-5-5"];
|
|
1387
|
-
/**
|
|
1388
|
-
* Canonical reasoning-effort ladder, ordered weakest to strongest.
|
|
1389
|
-
* Union of every effort keyword the offered providers accept; no
|
|
1390
|
-
* single model accepts all of them, which is exactly why the
|
|
1391
|
-
* generated per-model `MODEL_REASONING_EFFORTS` exists.
|
|
1392
|
-
*/
|
|
1393
|
-
export declare const REASONING_EFFORTS: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
1394
|
-
export type ReasoningEffort = (typeof REASONING_EFFORTS)[number];
|
|
1395
|
-
declare const resolvedReasoningEffortSchema: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"], undefined>, v.BrandAction<"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "ResolvedReasoningEffort">]>;
|
|
1396
|
-
/**
|
|
1397
|
-
* A reasoning effort proven to be accepted by the model it targets.
|
|
1398
|
-
* Only `resolveReasoningEffort` can produce this type, so option
|
|
1399
|
-
* builders cannot hand a provider a literal effort the model rejects
|
|
1400
|
-
* (e.g. `"none"` to a model whose reasoning cannot be disabled) —
|
|
1401
|
-
* that mistake now fails typecheck instead of 502-ing at runtime.
|
|
1402
|
-
*/
|
|
1403
|
-
export type ResolvedReasoningEffort = v.InferOutput<typeof resolvedReasoningEffortSchema>;
|
|
1404
|
-
/**
|
|
1405
|
-
* Per-provider model served when a user's included budget is exhausted
|
|
1406
|
-
* and no explicit selection overrides it. Falls back to each
|
|
1407
|
-
* provider's fast-role default; providers without a first-class
|
|
1408
|
-
* adapter path cannot serve the lane. Total over providers so a new
|
|
1409
|
-
* provider lands with an explicit decision.
|
|
1410
|
-
*/
|
|
1411
|
-
export declare const FALLBACK_CHAT_MODEL_BY_PROVIDER: {
|
|
1412
|
-
readonly google: "gemini-3.8-flash";
|
|
1413
|
-
readonly openrouter: "openai/gpt-6-luna";
|
|
1414
|
-
readonly openai: "gpt-6-luna";
|
|
1415
|
-
readonly anthropic: "claude-opus-5-5";
|
|
1416
|
-
readonly bedrock: "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
1417
|
-
readonly mistral: "mistral-small-latest";
|
|
1418
|
-
readonly azure_foundry: null;
|
|
1419
|
-
readonly openai_compatible: null;
|
|
1420
|
-
readonly huggingface: null;
|
|
1421
|
-
};
|
|
1422
|
-
/**
|
|
1423
|
-
* Provider-native IDs that are exact aliases of an offered catalog ID.
|
|
1424
|
-
* Every metadata lookup normalizes here, so instance/dev overrides cannot
|
|
1425
|
-
* bypass rates or capabilities and duplicated alias rows cannot drift apart.
|
|
1426
|
-
*/
|
|
1427
|
-
export declare const MODEL_CATALOG_ID_ALIASES: {
|
|
1428
|
-
readonly "gpt-5.6-sol": "gpt-5.6";
|
|
1429
|
-
readonly "claude-opus-4.8": "claude-opus-4-8";
|
|
1430
|
-
readonly "claude-sonnet-5.5": "claude-sonnet-5-5";
|
|
1431
|
-
readonly "claude-sonnet-4.6": "claude-sonnet-4-6";
|
|
1432
|
-
};
|
|
1433
|
-
export declare const normalizeModelCatalogId: (modelId: string) => string;
|
|
1434
|
-
/**
|
|
1435
|
-
* Whether stella should emit a `temperature` override for this model.
|
|
1436
|
-
* This is deliberately stricter than provider acceptance: deprecated
|
|
1437
|
-
* parameters that are accepted but ignored resolve to `false`. Unknown ids
|
|
1438
|
-
* also resolve to `false` (send nothing; provider default). Callers must
|
|
1439
|
-
* never index `MODEL_TEMPERATURE_POLICIES` directly with
|
|
1440
|
-
* a runtime string.
|
|
1441
|
-
*/
|
|
1442
|
-
export declare const shouldEmitTemperature: (modelId: string) => boolean;
|
|
1443
|
-
/**
|
|
1444
|
-
* The most output tokens one response of `modelId` may carry, from the
|
|
1445
|
-
* catalog. `undefined` for an id the catalog does not list (a deployment
|
|
1446
|
-
* override, a dev model): the catalog knows nothing about it, so callers leave
|
|
1447
|
-
* the allowance to the provider rather than guess one. Callers must never
|
|
1448
|
-
* index `MODEL_OUTPUT_TOKEN_LIMITS` directly with a runtime string.
|
|
1449
|
-
*/
|
|
1450
|
-
export declare const getOutputTokenLimit: (modelId: string) => number | undefined;
|
|
1451
|
-
/**
|
|
1452
|
-
* Whether a model accepts tool use on a streaming request.
|
|
1453
|
-
*
|
|
1454
|
-
* Every tool-carrying request stella sends is a stream, and structured
|
|
1455
|
-
* output is a forced tool call, so `"unsupported"` withdraws both: the
|
|
1456
|
-
* provider answers such a request with a fatal stream error rather than a
|
|
1457
|
-
* degraded result. models.dev does not publish this, so the map is
|
|
1458
|
-
* hand-declared here rather than in the generated `capabilities.gen.ts`,
|
|
1459
|
-
* and it is total over the offered catalog: a new model forces a decision.
|
|
1460
|
-
*
|
|
1461
|
-
* Consumers must go through `supportsStreamingToolUse`.
|
|
1462
|
-
*/
|
|
1463
|
-
export declare const MODEL_STREAMING_TOOL_USE: {
|
|
1464
|
-
readonly "gemini-3.8-flash": "supported";
|
|
1465
|
-
readonly "gemini-3.7-flash": "supported";
|
|
1466
|
-
readonly "gemini-3.6-flash": "supported";
|
|
1467
|
-
readonly "gemini-3.5-flash-lite": "supported";
|
|
1468
|
-
readonly "gemini-3.1-pro-preview": "supported";
|
|
1469
|
-
readonly "gemini-3.5-flash": "supported";
|
|
1470
|
-
readonly "gemini-3.1-flash-lite": "supported";
|
|
1471
|
-
readonly "openai/gpt-6.1-sol": "supported";
|
|
1472
|
-
readonly "openai/gpt-6-astra": "supported";
|
|
1473
|
-
readonly "openai/gpt-6-sol": "supported";
|
|
1474
|
-
readonly "openai/gpt-6-luna": "supported";
|
|
1475
|
-
readonly "openai/gpt-5.6-sol": "supported";
|
|
1476
|
-
readonly "openai/gpt-5.6-terra": "supported";
|
|
1477
|
-
readonly "openai/gpt-5.6-luna": "supported";
|
|
1478
|
-
readonly "google/gemini-3.8-flash": "supported";
|
|
1479
|
-
readonly "google/gemini-3.7-flash": "supported";
|
|
1480
|
-
readonly "google/gemini-3.6-flash": "supported";
|
|
1481
|
-
readonly "google/gemini-3.5-flash-lite": "supported";
|
|
1482
|
-
readonly "google/gemini-3.1-pro-preview": "supported";
|
|
1483
|
-
readonly "google/gemini-3.5-flash": "supported";
|
|
1484
|
-
readonly "google/gemini-3.1-flash-lite": "supported";
|
|
1485
|
-
readonly "anthropic/claude-sonnet-5.5": "supported";
|
|
1486
|
-
readonly "anthropic/claude-sonnet-5": "supported";
|
|
1487
|
-
readonly "anthropic/claude-opus-5": "supported";
|
|
1488
|
-
readonly "anthropic/claude-opus-4.8": "supported";
|
|
1489
|
-
readonly "anthropic/claude-sonnet-4.6": "supported";
|
|
1490
|
-
readonly "openai/gpt-5.5": "supported";
|
|
1491
|
-
readonly "openai/gpt-5.4-mini": "supported";
|
|
1492
|
-
readonly "gpt-6.1-sol": "supported";
|
|
1493
|
-
readonly "gpt-6-astra": "supported";
|
|
1494
|
-
readonly "gpt-6-sol": "supported";
|
|
1495
|
-
readonly "gpt-6-luna": "supported";
|
|
1496
|
-
readonly "gpt-5.6": "supported";
|
|
1497
|
-
readonly "gpt-5.6-terra": "supported";
|
|
1498
|
-
readonly "gpt-5.6-luna": "supported";
|
|
1499
|
-
readonly "gpt-5.5": "supported";
|
|
1500
|
-
readonly "gpt-5.4": "supported";
|
|
1501
|
-
readonly "gpt-5.4-mini": "supported";
|
|
1502
|
-
readonly "gpt-5.4-nano": "supported";
|
|
1503
|
-
readonly "gpt-5.2": "supported";
|
|
1504
|
-
readonly "claude-sonnet-5-5": "supported";
|
|
1505
|
-
readonly "claude-sonnet-5": "supported";
|
|
1506
|
-
readonly "claude-fable-5-1": "supported";
|
|
1507
|
-
readonly "claude-fable-5": "supported";
|
|
1508
|
-
readonly "claude-opus-5-5": "supported";
|
|
1509
|
-
readonly "claude-opus-5": "supported";
|
|
1510
|
-
readonly "claude-opus-4-8": "supported";
|
|
1511
|
-
readonly "claude-opus-4-7": "supported";
|
|
1512
|
-
readonly "claude-sonnet-4-6": "supported";
|
|
1513
|
-
readonly "claude-opus-4-6": "supported";
|
|
1514
|
-
readonly "claude-haiku-4-5-20251001": "supported";
|
|
1515
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": "supported";
|
|
1516
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": "supported";
|
|
1517
|
-
readonly "us.amazon.nova-pro-v1:0": "supported";
|
|
1518
|
-
readonly "us.amazon.nova-lite-v1:0": "supported";
|
|
1519
|
-
readonly "us.amazon.nova-micro-v1:0": "supported";
|
|
1520
|
-
readonly "openai.gpt-oss-120b-1:0": "supported";
|
|
1521
|
-
readonly "openai.gpt-oss-20b-1:0": "supported";
|
|
1522
|
-
readonly "mistral-large-latest": "supported";
|
|
1523
|
-
readonly "mistral-medium-latest": "supported";
|
|
1524
|
-
readonly "mistral-small-latest": "supported";
|
|
1525
|
-
};
|
|
1526
|
-
/**
|
|
1527
|
-
* Whether stella may send tools (or a structured-output schema) to this
|
|
1528
|
-
* model on a streaming request. Unlisted ids resolve to `true`: custom
|
|
1529
|
-
* deployments and env overrides are overwhelmingly tool-capable, and
|
|
1530
|
-
* withdrawing tools from an uncatalogued model would silently strip the
|
|
1531
|
-
* agent loop rather than fail where it can be seen.
|
|
1532
|
-
*/
|
|
1533
|
-
export declare const supportsStreamingToolUse: (modelId: string) => boolean;
|
|
1534
|
-
/**
|
|
1535
|
-
* Declared reasoning-effort values for a model ID, or `null` when the
|
|
1536
|
-
* model has no effort control or is not catalogued (custom deployments,
|
|
1537
|
-
* env overrides). Callers must never index `MODEL_REASONING_EFFORTS`
|
|
1538
|
-
* directly with a runtime string.
|
|
1539
|
-
*/
|
|
1540
|
-
export declare const getModelReasoningEfforts: (modelId: string) => readonly ReasoningEffort[] | null;
|
|
1541
|
-
/**
|
|
1542
|
-
* Concrete provider-default effort published for a model, or null when the
|
|
1543
|
-
* provider exposes no named default. Unknown ids also resolve to null.
|
|
1544
|
-
*/
|
|
1545
|
-
export declare const getModelDefaultReasoningEffort: (modelId: string) => ReasoningEffort | null;
|
|
1546
|
-
export type ResolveReasoningEffortOptions = {
|
|
1547
|
-
modelId: string;
|
|
1548
|
-
requested: ReasoningEffort;
|
|
1549
|
-
};
|
|
1550
|
-
/**
|
|
1551
|
-
* Clamp a requested reasoning effort into the target model's declared
|
|
1552
|
-
* capability.
|
|
1553
|
-
*
|
|
1554
|
-
* - Unknown model or no effort control → `null` (send no effort at
|
|
1555
|
-
* all; the provider default is the only universally safe choice).
|
|
1556
|
-
* - Requested value supported → returned unchanged.
|
|
1557
|
-
* - Otherwise → the supported value nearest on `REASONING_EFFORTS`,
|
|
1558
|
-
* preferring the weaker side on ties, so a "none" request against a
|
|
1559
|
-
* reasoning-mandatory model degrades to its weakest tier instead of
|
|
1560
|
-
* erroring, and requests above the model's ceiling clamp down to it.
|
|
1561
|
-
*/
|
|
1562
|
-
export declare const resolveReasoningEffort: ({ modelId, requested }: ResolveReasoningEffortOptions) => ResolvedReasoningEffort | null;
|
|
1563
|
-
export declare const getModelRate: (modelId: string) => ModelRate | undefined;
|
|
1564
|
-
/**
|
|
1565
|
-
* Documented input context-window sizes (in tokens) per model ID.
|
|
1566
|
-
*
|
|
1567
|
-
* Keys are the canonical model IDs stella resolves for the provider
|
|
1568
|
-
* adapters (the same forms used in `MODEL_RATES`, `BYOK_MODEL_OPTIONS`,
|
|
1569
|
-
* and `DEFAULT_MODELS`, including OpenRouter provider-prefixed slugs and
|
|
1570
|
-
* AWS Bedrock IDs). Values are the providers' publicly documented input
|
|
1571
|
-
* windows; where a provider offers a larger beta window we intentionally
|
|
1572
|
-
* take the conservative default (e.g. Claude's standard 200K rather than
|
|
1573
|
-
* the 1M beta) so context budgeting never overpromises.
|
|
1574
|
-
*
|
|
1575
|
-
* Consumers must go through `getContextWindowTokens`, which falls back to
|
|
1576
|
-
* `DEFAULT_CONTEXT_WINDOW_TOKENS` for any unlisted ID. Unlike
|
|
1577
|
-
* `MODEL_RATES`, the nightly `model-catalog-upstream` check does not
|
|
1578
|
-
* validate this map, so an unknown model degrades to the conservative
|
|
1579
|
-
* default rather than failing CI.
|
|
1580
|
-
*/
|
|
1581
|
-
export declare const CONTEXT_WINDOW_TOKENS: {
|
|
1582
|
-
readonly "gemini-2.5-flash": 1048576;
|
|
1583
|
-
readonly "gemini-2.5-pro": 1048576;
|
|
1584
|
-
readonly "gemini-3.1-flash-lite": 1048576;
|
|
1585
|
-
readonly "gemini-3.5-flash": 1048576;
|
|
1586
|
-
readonly "gemini-3.5-flash-lite": 1048576;
|
|
1587
|
-
readonly "gemini-3.6-flash": 1048576;
|
|
1588
|
-
readonly "gemini-3.7-flash": 1048576;
|
|
1589
|
-
readonly "gemini-3.8-flash": 1048576;
|
|
1590
|
-
readonly "gemini-3.1-pro-preview": 1048576;
|
|
1591
|
-
readonly "gpt-4o-mini": 128000;
|
|
1592
|
-
readonly "gpt-4o": 128000;
|
|
1593
|
-
readonly "gpt-5.2": 400000;
|
|
1594
|
-
readonly "gpt-5.4-nano": 400000;
|
|
1595
|
-
readonly "gpt-5.4-mini": 400000;
|
|
1596
|
-
readonly "gpt-5.4": 400000;
|
|
1597
|
-
readonly "gpt-5.5": 400000;
|
|
1598
|
-
readonly "gpt-6.1-sol": 922000;
|
|
1599
|
-
readonly "gpt-6-astra": 922000;
|
|
1600
|
-
readonly "gpt-6-sol": 922000;
|
|
1601
|
-
readonly "gpt-6-luna": 922000;
|
|
1602
|
-
readonly "gpt-5.6": 922000;
|
|
1603
|
-
readonly "gpt-5.6-luna": 922000;
|
|
1604
|
-
readonly "gpt-5.6-terra": 922000;
|
|
1605
|
-
readonly "claude-haiku-4-5-20251001": 200000;
|
|
1606
|
-
readonly "claude-sonnet-4-6": 200000;
|
|
1607
|
-
readonly "claude-sonnet-5": 1000000;
|
|
1608
|
-
readonly "claude-sonnet-5-5": 1000000;
|
|
1609
|
-
readonly "claude-opus-4-6": 200000;
|
|
1610
|
-
readonly "claude-opus-4-7": 200000;
|
|
1611
|
-
readonly "claude-opus-4-8": 200000;
|
|
1612
|
-
readonly "claude-opus-5": 1000000;
|
|
1613
|
-
readonly "claude-opus-5-5": 1000000;
|
|
1614
|
-
readonly "claude-fable-5": 200000;
|
|
1615
|
-
readonly "claude-fable-5-1": 1000000;
|
|
1616
|
-
readonly "mistral-small-latest": 128000;
|
|
1617
|
-
readonly "mistral-large-latest": 128000;
|
|
1618
|
-
readonly "mistral-medium-latest": 128000;
|
|
1619
|
-
readonly "mistral-medium-3-5": 128000;
|
|
1620
|
-
readonly "magistral-small-latest": 128000;
|
|
1621
|
-
readonly "google/gemini-3.8-flash": 1048576;
|
|
1622
|
-
readonly "google/gemini-3.7-flash": 1048576;
|
|
1623
|
-
readonly "google/gemini-3.6-flash": 1048576;
|
|
1624
|
-
readonly "google/gemini-3.5-flash-lite": 1048576;
|
|
1625
|
-
readonly "google/gemini-3.1-pro-preview": 1048576;
|
|
1626
|
-
readonly "google/gemini-3.5-flash": 1048576;
|
|
1627
|
-
readonly "google/gemini-3.1-flash-lite": 1048576;
|
|
1628
|
-
readonly "anthropic/claude-sonnet-5.5": 1000000;
|
|
1629
|
-
readonly "anthropic/claude-sonnet-5": 1000000;
|
|
1630
|
-
readonly "anthropic/claude-opus-5": 1000000;
|
|
1631
|
-
readonly "anthropic/claude-opus-4.8": 200000;
|
|
1632
|
-
readonly "anthropic/claude-sonnet-4.6": 200000;
|
|
1633
|
-
readonly "openai/gpt-6.1-sol": 922000;
|
|
1634
|
-
readonly "openai/gpt-6-astra": 922000;
|
|
1635
|
-
readonly "openai/gpt-6-sol": 922000;
|
|
1636
|
-
readonly "openai/gpt-6-luna": 922000;
|
|
1637
|
-
readonly "openai/gpt-5.6-sol": 922000;
|
|
1638
|
-
readonly "openai/gpt-5.6-luna": 922000;
|
|
1639
|
-
readonly "openai/gpt-5.6-terra": 922000;
|
|
1640
|
-
readonly "openai/gpt-5.5": 400000;
|
|
1641
|
-
readonly "openai/gpt-5.4-mini": 400000;
|
|
1642
|
-
readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": 200000;
|
|
1643
|
-
readonly "us.anthropic.claude-haiku-4-5-20251001-v1:0": 200000;
|
|
1644
|
-
readonly "us.amazon.nova-pro-v1:0": 300000;
|
|
1645
|
-
readonly "us.amazon.nova-lite-v1:0": 300000;
|
|
1646
|
-
readonly "us.amazon.nova-micro-v1:0": 128000;
|
|
1647
|
-
readonly "openai.gpt-oss-120b-1:0": 128000;
|
|
1648
|
-
readonly "openai.gpt-oss-20b-1:0": 128000;
|
|
1649
|
-
readonly "us.deepseek.r1-v1:0": 128000;
|
|
1650
|
-
};
|
|
1651
|
-
/**
|
|
1652
|
-
* Conservative window assumed for any model ID absent from
|
|
1653
|
-
* `CONTEXT_WINDOW_TOKENS` (custom deployments, OpenAI-compatible
|
|
1654
|
-
* endpoints, brand-new IDs not yet catalogued).
|
|
1655
|
-
*/
|
|
1656
|
-
export declare const DEFAULT_CONTEXT_WINDOW_TOKENS = 128000;
|
|
1657
|
-
/**
|
|
1658
|
-
* Documented input context window for a model ID, or the conservative
|
|
1659
|
-
* default for unlisted IDs. Callers must never index
|
|
1660
|
-
* `CONTEXT_WINDOW_TOKENS` directly.
|
|
1661
|
-
*/
|
|
1662
|
-
export declare const getContextWindowTokens: (modelId: string) => number;
|
|
1663
|
-
//#endregion
|
|
1664
|
-
export type { CapabilityOverride, DocumentInputOverride, ImageInputOverride, ImageInputOverrides, ModelRate, ModelRateAmounts, ModelsDevRateProvider };
|
|
1
|
+
import { $ as MODEL_OUTPUT_TOKEN_LIMITS, A as STREAMING_TOOL_USE_SUPPORTS, B as getModelRate, C as ModelDisplayMetadata, D as ReasoningEffort, E as REASONING_EFFORTS, F as TemperaturePolicy, G as isChatPdfAttachmentModelSupported, H as getOutputTokenLimit, I as getContextWindowTokens, J as resolveWorkingBYOKModelForRole, K as normalizeModelCatalogId, L as getModelDefaultReasoningEffort, M as TANSTACK_AI_PROVIDERS, N as TEMPERATURE_POLICIES, O as ResolveReasoningEffortOptions, P as TanStackAIProvider, Q as MODEL_IMAGE_INPUT_CAPABILITIES, R as getModelDisplayMetadata, S as MODEL_STREAMING_TOOL_USE, T as OfferedBYOKModelId, U as isBYOKModelRoleSupported, V as getModelReasoningEfforts, W as isBYOKProviderRoleSupported, X as supportsStreamingToolUse, Y as shouldEmitTemperature, Z as MODEL_DEFAULT_REASONING_EFFORTS, _ as ImageInputCapability, _t as getStandardModelRate, a as BYOKProvider, at as CapabilityOverride, b as MODEL_DISPLAY_METADATA, c as BYOK_MODEL_OPTIONS, ct as ImageInputOverrides, d as DEFAULT_CONTEXT_WINDOW_TOKENS, dt as ModelsDevRateProvider, et as MODEL_REASONING_EFFORTS, f as DEFAULT_MODELS, ft as RETAINED_MODELS_DEV_RATE_ENTRIES, g as IMAGE_INPUT_CAPABILITIES, gt as ModelRateAmounts, h as FirstPartyModelProvider, ht as ModelRate, i as BYOKModelIdByProvider, it as CAPABILITY_OVERRIDES, j as StreamingToolUseSupport, k as ResolvedReasoningEffort, l as CHAT_PDF_ATTACHMENT_MODEL_OPTIONS, lt as MODELS_DEV_RATE_PROVIDER_BY_CATALOG_PROVIDER, m as FIRST_PARTY_MODEL_PROVIDERS, mt as MODEL_RATE_UNITS_PER_USD, n as AI_PROVIDERS, nt as DOCUMENT_INPUT_OVERRIDES, o as BYOK_DEFAULT_MODELS, ot as IMAGE_INPUT_OVERRIDES, p as FALLBACK_CHAT_MODEL_BY_PROVIDER, pt as MODEL_RATES, q as resolveReasoningEffort, r as ANTHROPIC_ADAPTIVE_THINKING_MODELS, rt as DocumentInputOverride, s as BYOK_DOCUMENT_INPUT_MODEL_OPTIONS, st as ImageInputOverride, t as AIProvider, tt as MODEL_TEMPERATURE_POLICIES, u as CONTEXT_WINDOW_TOKENS, ut as MODELS_DEV_RATE_SOURCE_ALIASES, v as MODEL_CATALOG_ID_ALIASES, vt as resolveModelRate, w as ModelRole, x as MODEL_ROLES, y as MODEL_CATALOG_PROVIDER_KIND, z as getModelImageInputCapability } from "./index-D5gnRT1S.js";
|
|
2
|
+
export { AIProvider, AI_PROVIDERS, ANTHROPIC_ADAPTIVE_THINKING_MODELS, BYOKModelIdByProvider, BYOKProvider, BYOK_DEFAULT_MODELS, BYOK_DOCUMENT_INPUT_MODEL_OPTIONS, BYOK_MODEL_OPTIONS, CAPABILITY_OVERRIDES, CHAT_PDF_ATTACHMENT_MODEL_OPTIONS, CONTEXT_WINDOW_TOKENS, type CapabilityOverride, DEFAULT_CONTEXT_WINDOW_TOKENS, DEFAULT_MODELS, DOCUMENT_INPUT_OVERRIDES, type DocumentInputOverride, FALLBACK_CHAT_MODEL_BY_PROVIDER, FIRST_PARTY_MODEL_PROVIDERS, FirstPartyModelProvider, IMAGE_INPUT_CAPABILITIES, IMAGE_INPUT_OVERRIDES, ImageInputCapability, type ImageInputOverride, type ImageInputOverrides, MODELS_DEV_RATE_PROVIDER_BY_CATALOG_PROVIDER, MODELS_DEV_RATE_SOURCE_ALIASES, MODEL_CATALOG_ID_ALIASES, MODEL_CATALOG_PROVIDER_KIND, MODEL_DEFAULT_REASONING_EFFORTS, MODEL_DISPLAY_METADATA, MODEL_IMAGE_INPUT_CAPABILITIES, MODEL_OUTPUT_TOKEN_LIMITS, MODEL_RATES, MODEL_RATE_UNITS_PER_USD, MODEL_REASONING_EFFORTS, MODEL_ROLES, MODEL_STREAMING_TOOL_USE, MODEL_TEMPERATURE_POLICIES, ModelDisplayMetadata, type ModelRate, type ModelRateAmounts, ModelRole, type ModelsDevRateProvider, OfferedBYOKModelId, REASONING_EFFORTS, RETAINED_MODELS_DEV_RATE_ENTRIES, ReasoningEffort, ResolveReasoningEffortOptions, ResolvedReasoningEffort, STREAMING_TOOL_USE_SUPPORTS, StreamingToolUseSupport, TANSTACK_AI_PROVIDERS, TEMPERATURE_POLICIES, TanStackAIProvider, TemperaturePolicy, getContextWindowTokens, getModelDefaultReasoningEffort, getModelDisplayMetadata, getModelImageInputCapability, getModelRate, getModelReasoningEfforts, getOutputTokenLimit, getStandardModelRate, isBYOKModelRoleSupported, isBYOKProviderRoleSupported, isChatPdfAttachmentModelSupported, normalizeModelCatalogId, resolveModelRate, resolveReasoningEffort, resolveWorkingBYOKModelForRole, shouldEmitTemperature, supportsStreamingToolUse };
|