@ai-sdk/deepinfra 3.0.99 → 3.0.101
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 +15 -0
- package/dist/index.d.ts +567 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +521 -580
- package/dist/index.js.map +1 -1
- package/docs/11-deepinfra.mdx +3 -0
- package/package.json +3 -3
- package/src/deepinfra-model-capabilities.ts +19 -0
- package/src/deepinfra-model-catalog.ts +616 -363
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-sdk/deepinfra
|
|
2
2
|
|
|
3
|
+
## 3.0.101
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 52a423f: Export provider-specific model capability lookup functions with typed model IDs, endpoint-specific capabilities, and provider option descriptions and support, without API requests or configuration.
|
|
8
|
+
- Updated dependencies [52a423f]
|
|
9
|
+
- @ai-sdk/provider-utils@5.0.88
|
|
10
|
+
- @ai-sdk/openai-compatible@3.0.99
|
|
11
|
+
|
|
12
|
+
## 3.0.100
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 51d114b: refactor(deepinfra): declare model capabilities per model ID
|
|
17
|
+
|
|
3
18
|
## 3.0.99
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,508 @@ import { OpenAICompatibleErrorData as DeepInfraErrorData } from "@ai-sdk/openai-
|
|
|
2
2
|
import { FetchFunction, InferSchema, Resolvable } from "@ai-sdk/provider-utils";
|
|
3
3
|
import { EmbeddingModelV4, ImageModelV4, LanguageModelV4, ProviderV4 } from "@ai-sdk/provider";
|
|
4
4
|
//#region src/deepinfra-model-catalog.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Language model matrix: model IDs by capability. To add a model, add a row
|
|
7
|
+
* and fill in every column.
|
|
8
|
+
*/
|
|
9
|
+
declare const languageModelDefinitions: {
|
|
10
|
+
'01-ai/Yi-34B-Chat': {
|
|
11
|
+
image: "unknown";
|
|
12
|
+
objectGeneration: "unknown";
|
|
13
|
+
functionTools: "unknown";
|
|
14
|
+
};
|
|
15
|
+
'Austism/chronos-hermes-13b-v2': {
|
|
16
|
+
image: "unknown";
|
|
17
|
+
objectGeneration: "unknown";
|
|
18
|
+
functionTools: "unknown";
|
|
19
|
+
};
|
|
20
|
+
'bigcode/starcoder2-15b-instruct-v0.1': {
|
|
21
|
+
image: "unknown";
|
|
22
|
+
objectGeneration: "unknown";
|
|
23
|
+
functionTools: "unknown";
|
|
24
|
+
};
|
|
25
|
+
'bigcode/starcoder2-15b': {
|
|
26
|
+
image: "unknown";
|
|
27
|
+
objectGeneration: "unknown";
|
|
28
|
+
functionTools: "unknown";
|
|
29
|
+
};
|
|
30
|
+
'codellama/CodeLlama-34b-Instruct-hf': {
|
|
31
|
+
image: "unknown";
|
|
32
|
+
objectGeneration: "unknown";
|
|
33
|
+
functionTools: "unknown";
|
|
34
|
+
};
|
|
35
|
+
'codellama/CodeLlama-70b-Instruct-hf': {
|
|
36
|
+
image: "unknown";
|
|
37
|
+
objectGeneration: "unknown";
|
|
38
|
+
functionTools: "unknown";
|
|
39
|
+
};
|
|
40
|
+
'cognitivecomputations/dolphin-2.6-mixtral-8x7b': {
|
|
41
|
+
image: "unknown";
|
|
42
|
+
objectGeneration: "unknown";
|
|
43
|
+
functionTools: "unknown";
|
|
44
|
+
};
|
|
45
|
+
'cognitivecomputations/dolphin-2.9.1-llama-3-70b': {
|
|
46
|
+
image: "unknown";
|
|
47
|
+
objectGeneration: "unknown";
|
|
48
|
+
functionTools: "unknown";
|
|
49
|
+
};
|
|
50
|
+
'databricks/dbrx-instruct': {
|
|
51
|
+
image: "unknown";
|
|
52
|
+
objectGeneration: "unknown";
|
|
53
|
+
functionTools: "unknown";
|
|
54
|
+
};
|
|
55
|
+
'deepinfra/airoboros-70b': {
|
|
56
|
+
image: "unknown";
|
|
57
|
+
objectGeneration: "unknown";
|
|
58
|
+
functionTools: "unknown";
|
|
59
|
+
};
|
|
60
|
+
'deepseek-ai/DeepSeek-V3': {
|
|
61
|
+
image: false;
|
|
62
|
+
objectGeneration: true;
|
|
63
|
+
functionTools: "streaming"[];
|
|
64
|
+
};
|
|
65
|
+
'deepseek-ai/DeepSeek-R1': {
|
|
66
|
+
image: false;
|
|
67
|
+
objectGeneration: false;
|
|
68
|
+
functionTools: false;
|
|
69
|
+
};
|
|
70
|
+
'deepseek-ai/DeepSeek-R1-Distill-Llama-70B': {
|
|
71
|
+
image: false;
|
|
72
|
+
objectGeneration: false;
|
|
73
|
+
functionTools: false;
|
|
74
|
+
};
|
|
75
|
+
'deepseek-ai/DeepSeek-R1-Turbo': {
|
|
76
|
+
image: false;
|
|
77
|
+
objectGeneration: false;
|
|
78
|
+
functionTools: false;
|
|
79
|
+
};
|
|
80
|
+
'google/codegemma-7b-it': {
|
|
81
|
+
image: false;
|
|
82
|
+
objectGeneration: false;
|
|
83
|
+
functionTools: false;
|
|
84
|
+
};
|
|
85
|
+
'google/gemma-1.1-7b-it': {
|
|
86
|
+
image: "unknown";
|
|
87
|
+
objectGeneration: "unknown";
|
|
88
|
+
functionTools: "unknown";
|
|
89
|
+
};
|
|
90
|
+
'google/gemma-2-27b-it': {
|
|
91
|
+
image: "unknown";
|
|
92
|
+
objectGeneration: "unknown";
|
|
93
|
+
functionTools: "unknown";
|
|
94
|
+
};
|
|
95
|
+
'google/gemma-2-9b-it': {
|
|
96
|
+
image: false;
|
|
97
|
+
objectGeneration: false;
|
|
98
|
+
functionTools: false;
|
|
99
|
+
};
|
|
100
|
+
'Gryphe/MythoMax-L2-13b-turbo': {
|
|
101
|
+
image: "unknown";
|
|
102
|
+
objectGeneration: "unknown";
|
|
103
|
+
functionTools: "unknown";
|
|
104
|
+
};
|
|
105
|
+
'Gryphe/MythoMax-L2-13b': {
|
|
106
|
+
image: "unknown";
|
|
107
|
+
objectGeneration: "unknown";
|
|
108
|
+
functionTools: "unknown";
|
|
109
|
+
};
|
|
110
|
+
'HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1': {
|
|
111
|
+
image: "unknown";
|
|
112
|
+
objectGeneration: "unknown";
|
|
113
|
+
functionTools: "unknown";
|
|
114
|
+
};
|
|
115
|
+
'KoboldAI/LLaMA2-13B-Tiefighter': {
|
|
116
|
+
image: "unknown";
|
|
117
|
+
objectGeneration: "unknown";
|
|
118
|
+
functionTools: "unknown";
|
|
119
|
+
};
|
|
120
|
+
'lizpreciatior/lzlv_70b_fp16_hf': {
|
|
121
|
+
image: "unknown";
|
|
122
|
+
objectGeneration: "unknown";
|
|
123
|
+
functionTools: "unknown";
|
|
124
|
+
};
|
|
125
|
+
'mattshumer/Reflection-Llama-3.1-70B': {
|
|
126
|
+
image: "unknown";
|
|
127
|
+
objectGeneration: "unknown";
|
|
128
|
+
functionTools: "unknown";
|
|
129
|
+
};
|
|
130
|
+
'meta-llama/Llama-2-13b-chat-hf': {
|
|
131
|
+
image: "unknown";
|
|
132
|
+
objectGeneration: "unknown";
|
|
133
|
+
functionTools: "unknown";
|
|
134
|
+
};
|
|
135
|
+
'meta-llama/Llama-2-70b-chat-hf': {
|
|
136
|
+
image: "unknown";
|
|
137
|
+
objectGeneration: "unknown";
|
|
138
|
+
functionTools: "unknown";
|
|
139
|
+
};
|
|
140
|
+
'meta-llama/Llama-2-7b-chat-hf': {
|
|
141
|
+
image: "unknown";
|
|
142
|
+
objectGeneration: "unknown";
|
|
143
|
+
functionTools: "unknown";
|
|
144
|
+
};
|
|
145
|
+
'meta-llama/Llama-3.2-11B-Vision-Instruct': {
|
|
146
|
+
image: true;
|
|
147
|
+
objectGeneration: true;
|
|
148
|
+
functionTools: false;
|
|
149
|
+
};
|
|
150
|
+
'meta-llama/Llama-3.2-1B-Instruct': {
|
|
151
|
+
image: "unknown";
|
|
152
|
+
objectGeneration: "unknown";
|
|
153
|
+
functionTools: "unknown";
|
|
154
|
+
};
|
|
155
|
+
'meta-llama/Llama-3.2-3B-Instruct': {
|
|
156
|
+
image: "unknown";
|
|
157
|
+
objectGeneration: "unknown";
|
|
158
|
+
functionTools: "unknown";
|
|
159
|
+
};
|
|
160
|
+
'meta-llama/Llama-3.2-90B-Vision-Instruct': {
|
|
161
|
+
image: true;
|
|
162
|
+
objectGeneration: true;
|
|
163
|
+
functionTools: false;
|
|
164
|
+
};
|
|
165
|
+
'meta-llama/Llama-3.3-70B-Instruct-Turbo': {
|
|
166
|
+
image: false;
|
|
167
|
+
objectGeneration: true;
|
|
168
|
+
functionTools: "streaming"[];
|
|
169
|
+
};
|
|
170
|
+
'meta-llama/Llama-3.3-70B-Instruct': {
|
|
171
|
+
image: false;
|
|
172
|
+
objectGeneration: true;
|
|
173
|
+
functionTools: "streaming"[];
|
|
174
|
+
};
|
|
175
|
+
'meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8': {
|
|
176
|
+
image: true;
|
|
177
|
+
objectGeneration: false;
|
|
178
|
+
functionTools: false;
|
|
179
|
+
};
|
|
180
|
+
'meta-llama/Llama-4-Scout-17B-16E-Instruct': {
|
|
181
|
+
image: true;
|
|
182
|
+
objectGeneration: false;
|
|
183
|
+
functionTools: false;
|
|
184
|
+
};
|
|
185
|
+
'meta-llama/Meta-Llama-3-70B-Instruct': {
|
|
186
|
+
image: "unknown";
|
|
187
|
+
objectGeneration: "unknown";
|
|
188
|
+
functionTools: "unknown";
|
|
189
|
+
};
|
|
190
|
+
'meta-llama/Meta-Llama-3-8B-Instruct': {
|
|
191
|
+
image: "unknown";
|
|
192
|
+
objectGeneration: "unknown";
|
|
193
|
+
functionTools: "unknown";
|
|
194
|
+
};
|
|
195
|
+
'meta-llama/Meta-Llama-3.1-405B-Instruct': {
|
|
196
|
+
image: false;
|
|
197
|
+
objectGeneration: true;
|
|
198
|
+
functionTools: "streaming"[];
|
|
199
|
+
};
|
|
200
|
+
'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo': {
|
|
201
|
+
image: false;
|
|
202
|
+
objectGeneration: true;
|
|
203
|
+
functionTools: "streaming"[];
|
|
204
|
+
};
|
|
205
|
+
'meta-llama/Meta-Llama-3.1-70B-Instruct': {
|
|
206
|
+
image: false;
|
|
207
|
+
objectGeneration: true;
|
|
208
|
+
functionTools: "streaming"[];
|
|
209
|
+
};
|
|
210
|
+
'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo': {
|
|
211
|
+
image: false;
|
|
212
|
+
objectGeneration: true;
|
|
213
|
+
functionTools: never[];
|
|
214
|
+
};
|
|
215
|
+
'meta-llama/Meta-Llama-3.1-8B-Instruct': {
|
|
216
|
+
image: false;
|
|
217
|
+
objectGeneration: true;
|
|
218
|
+
functionTools: "streaming"[];
|
|
219
|
+
};
|
|
220
|
+
'microsoft/Phi-3-medium-4k-instruct': {
|
|
221
|
+
image: "unknown";
|
|
222
|
+
objectGeneration: "unknown";
|
|
223
|
+
functionTools: "unknown";
|
|
224
|
+
};
|
|
225
|
+
'microsoft/WizardLM-2-7B': {
|
|
226
|
+
image: "unknown";
|
|
227
|
+
objectGeneration: "unknown";
|
|
228
|
+
functionTools: "unknown";
|
|
229
|
+
};
|
|
230
|
+
'microsoft/WizardLM-2-8x22B': {
|
|
231
|
+
image: false;
|
|
232
|
+
objectGeneration: false;
|
|
233
|
+
functionTools: false;
|
|
234
|
+
};
|
|
235
|
+
'mistralai/Mistral-7B-Instruct-v0.1': {
|
|
236
|
+
image: "unknown";
|
|
237
|
+
objectGeneration: "unknown";
|
|
238
|
+
functionTools: "unknown";
|
|
239
|
+
};
|
|
240
|
+
'mistralai/Mistral-7B-Instruct-v0.2': {
|
|
241
|
+
image: "unknown";
|
|
242
|
+
objectGeneration: "unknown";
|
|
243
|
+
functionTools: "unknown";
|
|
244
|
+
};
|
|
245
|
+
'mistralai/Mistral-7B-Instruct-v0.3': {
|
|
246
|
+
image: "unknown";
|
|
247
|
+
objectGeneration: "unknown";
|
|
248
|
+
functionTools: "unknown";
|
|
249
|
+
};
|
|
250
|
+
'mistralai/Mistral-Nemo-Instruct-2407': {
|
|
251
|
+
image: "unknown";
|
|
252
|
+
objectGeneration: "unknown";
|
|
253
|
+
functionTools: "unknown";
|
|
254
|
+
};
|
|
255
|
+
'mistralai/Mixtral-8x22B-Instruct-v0.1': {
|
|
256
|
+
image: "unknown";
|
|
257
|
+
objectGeneration: "unknown";
|
|
258
|
+
functionTools: "unknown";
|
|
259
|
+
};
|
|
260
|
+
'mistralai/Mixtral-8x22B-v0.1': {
|
|
261
|
+
image: "unknown";
|
|
262
|
+
objectGeneration: "unknown";
|
|
263
|
+
functionTools: "unknown";
|
|
264
|
+
};
|
|
265
|
+
'mistralai/Mixtral-8x7B-Instruct-v0.1': {
|
|
266
|
+
image: false;
|
|
267
|
+
objectGeneration: true;
|
|
268
|
+
functionTools: never[];
|
|
269
|
+
};
|
|
270
|
+
'NousResearch/Hermes-3-Llama-3.1-405B': {
|
|
271
|
+
image: "unknown";
|
|
272
|
+
objectGeneration: "unknown";
|
|
273
|
+
functionTools: "unknown";
|
|
274
|
+
};
|
|
275
|
+
'nvidia/Llama-3.1-Nemotron-70B-Instruct': {
|
|
276
|
+
image: false;
|
|
277
|
+
objectGeneration: true;
|
|
278
|
+
functionTools: never[];
|
|
279
|
+
};
|
|
280
|
+
'nvidia/Nemotron-4-340B-Instruct': {
|
|
281
|
+
image: "unknown";
|
|
282
|
+
objectGeneration: "unknown";
|
|
283
|
+
functionTools: "unknown";
|
|
284
|
+
};
|
|
285
|
+
'openbmb/MiniCPM-Llama3-V-2_5': {
|
|
286
|
+
image: "unknown";
|
|
287
|
+
objectGeneration: "unknown";
|
|
288
|
+
functionTools: "unknown";
|
|
289
|
+
};
|
|
290
|
+
'openchat/openchat_3.5': {
|
|
291
|
+
image: "unknown";
|
|
292
|
+
objectGeneration: "unknown";
|
|
293
|
+
functionTools: "unknown";
|
|
294
|
+
};
|
|
295
|
+
'openchat/openchat-3.6-8b': {
|
|
296
|
+
image: "unknown";
|
|
297
|
+
objectGeneration: "unknown";
|
|
298
|
+
functionTools: "unknown";
|
|
299
|
+
};
|
|
300
|
+
'Phind/Phind-CodeLlama-34B-v2': {
|
|
301
|
+
image: "unknown";
|
|
302
|
+
objectGeneration: "unknown";
|
|
303
|
+
functionTools: "unknown";
|
|
304
|
+
};
|
|
305
|
+
'Qwen/Qwen2-72B-Instruct': {
|
|
306
|
+
image: "unknown";
|
|
307
|
+
objectGeneration: "unknown";
|
|
308
|
+
functionTools: "unknown";
|
|
309
|
+
};
|
|
310
|
+
'Qwen/Qwen2-7B-Instruct': {
|
|
311
|
+
image: false;
|
|
312
|
+
objectGeneration: true;
|
|
313
|
+
functionTools: false;
|
|
314
|
+
};
|
|
315
|
+
'Qwen/Qwen2.5-72B-Instruct': {
|
|
316
|
+
image: false;
|
|
317
|
+
objectGeneration: true;
|
|
318
|
+
functionTools: "streaming"[];
|
|
319
|
+
};
|
|
320
|
+
'Qwen/Qwen2.5-7B-Instruct': {
|
|
321
|
+
image: "unknown";
|
|
322
|
+
objectGeneration: "unknown";
|
|
323
|
+
functionTools: "unknown";
|
|
324
|
+
};
|
|
325
|
+
'Qwen/Qwen2.5-Coder-32B-Instruct': {
|
|
326
|
+
image: false;
|
|
327
|
+
objectGeneration: true;
|
|
328
|
+
functionTools: false;
|
|
329
|
+
};
|
|
330
|
+
'Qwen/Qwen2.5-Coder-7B': {
|
|
331
|
+
image: "unknown";
|
|
332
|
+
objectGeneration: "unknown";
|
|
333
|
+
functionTools: "unknown";
|
|
334
|
+
};
|
|
335
|
+
'Qwen/QwQ-32B-Preview': {
|
|
336
|
+
image: false;
|
|
337
|
+
objectGeneration: true;
|
|
338
|
+
functionTools: false;
|
|
339
|
+
};
|
|
340
|
+
'Sao10K/L3-70B-Euryale-v2.1': {
|
|
341
|
+
image: "unknown";
|
|
342
|
+
objectGeneration: "unknown";
|
|
343
|
+
functionTools: "unknown";
|
|
344
|
+
};
|
|
345
|
+
'Sao10K/L3-8B-Lunaris-v1': {
|
|
346
|
+
image: "unknown";
|
|
347
|
+
objectGeneration: "unknown";
|
|
348
|
+
functionTools: "unknown";
|
|
349
|
+
};
|
|
350
|
+
'Sao10K/L3.1-70B-Euryale-v2.2': {
|
|
351
|
+
image: "unknown";
|
|
352
|
+
objectGeneration: "unknown";
|
|
353
|
+
functionTools: "unknown";
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Image model matrix: model IDs by capability. To add a model, add a row and
|
|
358
|
+
* fill in every column.
|
|
359
|
+
*/
|
|
360
|
+
declare const imageModelDefinitions: {
|
|
361
|
+
readonly 'stabilityai/sd3.5': {
|
|
362
|
+
readonly inModelIdType: true;
|
|
363
|
+
readonly fileInput: true;
|
|
364
|
+
readonly maskInput: true;
|
|
365
|
+
readonly dimensionSpecification: "Aspect Ratio";
|
|
366
|
+
readonly notes: "Premium quality base model, 8B parameters";
|
|
367
|
+
};
|
|
368
|
+
readonly 'black-forest-labs/FLUX-1.1-pro': {
|
|
369
|
+
readonly inModelIdType: true;
|
|
370
|
+
readonly fileInput: true;
|
|
371
|
+
readonly maskInput: true;
|
|
372
|
+
readonly dimensionSpecification: "Size";
|
|
373
|
+
readonly notes: "Latest state-of-art model with superior prompt following";
|
|
374
|
+
};
|
|
375
|
+
readonly 'black-forest-labs/FLUX-1-schnell': {
|
|
376
|
+
readonly inModelIdType: true;
|
|
377
|
+
readonly fileInput: true;
|
|
378
|
+
readonly maskInput: true;
|
|
379
|
+
readonly dimensionSpecification: "Size";
|
|
380
|
+
readonly notes: "Fast generation in 1-4 steps";
|
|
381
|
+
};
|
|
382
|
+
readonly 'black-forest-labs/FLUX-1-dev': {
|
|
383
|
+
readonly inModelIdType: true;
|
|
384
|
+
readonly fileInput: true;
|
|
385
|
+
readonly maskInput: true;
|
|
386
|
+
readonly dimensionSpecification: "Size";
|
|
387
|
+
readonly notes: "Optimized for anatomical accuracy";
|
|
388
|
+
};
|
|
389
|
+
readonly 'black-forest-labs/FLUX-pro': {
|
|
390
|
+
readonly inModelIdType: true;
|
|
391
|
+
readonly fileInput: true;
|
|
392
|
+
readonly maskInput: true;
|
|
393
|
+
readonly dimensionSpecification: "Size";
|
|
394
|
+
readonly notes: "Flagship Flux model";
|
|
395
|
+
};
|
|
396
|
+
readonly 'black-forest-labs/FLUX.1-Kontext-dev': {
|
|
397
|
+
readonly inModelIdType: true;
|
|
398
|
+
readonly fileInput: true;
|
|
399
|
+
readonly maskInput: true;
|
|
400
|
+
readonly dimensionSpecification: "Size";
|
|
401
|
+
readonly notes: "Image editing and transformation model";
|
|
402
|
+
};
|
|
403
|
+
readonly 'black-forest-labs/FLUX.1-Kontext-pro': {
|
|
404
|
+
readonly inModelIdType: true;
|
|
405
|
+
readonly fileInput: true;
|
|
406
|
+
readonly maskInput: true;
|
|
407
|
+
readonly dimensionSpecification: "Size";
|
|
408
|
+
readonly notes: "Professional image editing and transformation";
|
|
409
|
+
};
|
|
410
|
+
readonly 'stabilityai/sd3.5-medium': {
|
|
411
|
+
readonly inModelIdType: true;
|
|
412
|
+
readonly fileInput: true;
|
|
413
|
+
readonly maskInput: true;
|
|
414
|
+
readonly dimensionSpecification: "Aspect Ratio";
|
|
415
|
+
readonly notes: "Balanced 2.5B parameter model";
|
|
416
|
+
};
|
|
417
|
+
readonly 'stabilityai/sdxl-turbo': {
|
|
418
|
+
readonly inModelIdType: true;
|
|
419
|
+
readonly fileInput: true;
|
|
420
|
+
readonly maskInput: true;
|
|
421
|
+
readonly dimensionSpecification: "Aspect Ratio";
|
|
422
|
+
readonly notes: "Optimized for fast generation";
|
|
423
|
+
};
|
|
424
|
+
readonly 'Qwen/Qwen-Image-Edit': {
|
|
425
|
+
readonly inModelIdType: false;
|
|
426
|
+
readonly fileInput: true;
|
|
427
|
+
readonly maskInput: true;
|
|
428
|
+
readonly dimensionSpecification: "unknown";
|
|
429
|
+
readonly notes: false;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* Embedding model matrix: model IDs by capability. To add a model, add a row
|
|
434
|
+
* and fill in every column.
|
|
435
|
+
*/
|
|
436
|
+
declare const embeddingModelDefinitions: {
|
|
437
|
+
'BAAI/bge-base-en-v1.5': {
|
|
438
|
+
defaultDimensions: number;
|
|
439
|
+
maxTokens: number;
|
|
440
|
+
};
|
|
441
|
+
'BAAI/bge-large-en-v1.5': {
|
|
442
|
+
defaultDimensions: number;
|
|
443
|
+
maxTokens: number;
|
|
444
|
+
};
|
|
445
|
+
'BAAI/bge-m3': {
|
|
446
|
+
defaultDimensions: number;
|
|
447
|
+
maxTokens: number;
|
|
448
|
+
};
|
|
449
|
+
'intfloat/e5-base-v2': {
|
|
450
|
+
defaultDimensions: number;
|
|
451
|
+
maxTokens: number;
|
|
452
|
+
};
|
|
453
|
+
'intfloat/e5-large-v2': {
|
|
454
|
+
defaultDimensions: number;
|
|
455
|
+
maxTokens: number;
|
|
456
|
+
};
|
|
457
|
+
'intfloat/multilingual-e5-large': {
|
|
458
|
+
defaultDimensions: number;
|
|
459
|
+
maxTokens: number;
|
|
460
|
+
};
|
|
461
|
+
'sentence-transformers/all-MiniLM-L12-v2': {
|
|
462
|
+
defaultDimensions: number;
|
|
463
|
+
maxTokens: number;
|
|
464
|
+
};
|
|
465
|
+
'sentence-transformers/all-MiniLM-L6-v2': {
|
|
466
|
+
defaultDimensions: number;
|
|
467
|
+
maxTokens: number;
|
|
468
|
+
};
|
|
469
|
+
'sentence-transformers/all-mpnet-base-v2': {
|
|
470
|
+
defaultDimensions: number;
|
|
471
|
+
maxTokens: number;
|
|
472
|
+
};
|
|
473
|
+
'sentence-transformers/clip-ViT-B-32': {
|
|
474
|
+
defaultDimensions: number;
|
|
475
|
+
maxTokens: number;
|
|
476
|
+
};
|
|
477
|
+
'sentence-transformers/clip-ViT-B-32-multilingual-v1': {
|
|
478
|
+
defaultDimensions: number;
|
|
479
|
+
maxTokens: number;
|
|
480
|
+
};
|
|
481
|
+
'sentence-transformers/multi-qa-mpnet-base-dot-v1': {
|
|
482
|
+
defaultDimensions: number;
|
|
483
|
+
maxTokens: number;
|
|
484
|
+
};
|
|
485
|
+
'sentence-transformers/paraphrase-MiniLM-L6-v2': {
|
|
486
|
+
defaultDimensions: number;
|
|
487
|
+
maxTokens: number;
|
|
488
|
+
};
|
|
489
|
+
'shibing624/text2vec-base-chinese': {
|
|
490
|
+
defaultDimensions: number;
|
|
491
|
+
maxTokens: number;
|
|
492
|
+
};
|
|
493
|
+
'thenlper/gte-base': {
|
|
494
|
+
defaultDimensions: number;
|
|
495
|
+
maxTokens: number;
|
|
496
|
+
};
|
|
497
|
+
'thenlper/gte-large': {
|
|
498
|
+
defaultDimensions: number;
|
|
499
|
+
maxTokens: number;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
8
502
|
/** Known model IDs, derived from the declarations used to build the catalog. */
|
|
9
503
|
type DeepInfraModelIds = {
|
|
10
|
-
language:
|
|
11
|
-
embedding:
|
|
12
|
-
image: (typeof
|
|
504
|
+
language: keyof typeof languageModelDefinitions;
|
|
505
|
+
embedding: keyof typeof embeddingModelDefinitions;
|
|
506
|
+
image: { [ModelId in keyof typeof imageModelDefinitions]: (typeof imageModelDefinitions)[ModelId]['inModelIdType'] extends true ? ModelId : never; }[keyof typeof imageModelDefinitions];
|
|
13
507
|
};
|
|
14
508
|
//#endregion
|
|
15
509
|
//#region src/deepinfra-chat-options.d.ts
|
|
@@ -99,5 +593,72 @@ type DeepInfraImageModelOptions = InferSchema<typeof deepInfraImageModelOptionsS
|
|
|
99
593
|
//#region src/version.d.ts
|
|
100
594
|
export declare const VERSION: string;
|
|
101
595
|
//#endregion
|
|
596
|
+
//#region src/deepinfra-model-capabilities.d.ts
|
|
597
|
+
/** Looks up endpoint-specific metadata for a catalog model. */
|
|
598
|
+
export declare function deepInfraModelCapabilities(modelId: DeepInfraModelIds[keyof DeepInfraModelIds] | (string & {})): import("@ai-sdk/provider-utils").ModelCapabilitiesResult<"deepinfra", {
|
|
599
|
+
readonly capabilities: object;
|
|
600
|
+
readonly providerOptions?: import("@ai-sdk/provider").ModelProviderOptions;
|
|
601
|
+
}, {
|
|
602
|
+
readonly embedding: {
|
|
603
|
+
dimensions: {
|
|
604
|
+
description: string;
|
|
605
|
+
};
|
|
606
|
+
user: {
|
|
607
|
+
description: string;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly language: {
|
|
611
|
+
user: {
|
|
612
|
+
description: string;
|
|
613
|
+
};
|
|
614
|
+
reasoningEffort: {
|
|
615
|
+
description: string;
|
|
616
|
+
};
|
|
617
|
+
textVerbosity: {
|
|
618
|
+
description: string;
|
|
619
|
+
};
|
|
620
|
+
strictJsonSchema: {
|
|
621
|
+
description: string;
|
|
622
|
+
};
|
|
623
|
+
echo: {
|
|
624
|
+
description: string;
|
|
625
|
+
};
|
|
626
|
+
logitBias: {
|
|
627
|
+
description: string;
|
|
628
|
+
};
|
|
629
|
+
suffix: {
|
|
630
|
+
description: string;
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
readonly image: {
|
|
634
|
+
negative_prompt: {
|
|
635
|
+
description: string;
|
|
636
|
+
};
|
|
637
|
+
num_inference_steps: {
|
|
638
|
+
description: string;
|
|
639
|
+
};
|
|
640
|
+
guidance_scale: {
|
|
641
|
+
description: string;
|
|
642
|
+
};
|
|
643
|
+
guidance: {
|
|
644
|
+
description: string;
|
|
645
|
+
};
|
|
646
|
+
response_format: {
|
|
647
|
+
description: string;
|
|
648
|
+
};
|
|
649
|
+
quality: {
|
|
650
|
+
description: string;
|
|
651
|
+
};
|
|
652
|
+
style: {
|
|
653
|
+
description: string;
|
|
654
|
+
};
|
|
655
|
+
user: {
|
|
656
|
+
description: string;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
}, {
|
|
660
|
+
readonly language: "chat";
|
|
661
|
+
}> | undefined;
|
|
662
|
+
//#endregion
|
|
102
663
|
export { type DeepInfraErrorData, type DeepInfraImageModelOptions, type DeepInfraProvider, type DeepInfraProviderSettings, deepInfra as deepinfra };
|
|
103
664
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/deepinfra-model-catalog.ts","../src/deepinfra-chat-options.ts","../src/deepinfra-embedding-options.ts","../src/deepinfra-completion-options.ts","../src/deepinfra-image-settings.ts","../src/deepinfra-provider.ts","../src/deepinfra-image-model-options.ts","../src/version.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/deepinfra-model-catalog.ts","../src/deepinfra-chat-options.ts","../src/deepinfra-embedding-options.ts","../src/deepinfra-completion-options.ts","../src/deepinfra-image-settings.ts","../src/deepinfra-provider.ts","../src/deepinfra-image-model-options.ts","../src/version.ts","../src/deepinfra-model-capabilities.ts"],"mappings":";;;;;;;;cAkHM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoHM;EACV,uBAAuB;EACvB,wBAAwB;EACxB,UACG,wBAAwB,gCAAgC,uBAAuB,yCAC5E,gCAES;;;;KCrxBL,uBACR;;;KCDQ,4BACR;;;KCDQ,6BAA6B;;;KCA7B,wBAAwB;;;UCwBnB;;;;;EAKf,SAAS;;;;EAIT;;;;EAIA,UAAU;;;;;EAKV,QAAQ;;UAGO,0BAA0B;;;;GAIxC,SAAS,uBAAuB;;;;EAKjC,UAAU,SAAS,uBAAuB;;;;EAK1C,MAAM,SAAS,wBAAwB;;;;EAKvC,WAAW,SAAS,wBAAwB;;;;EAK5C,cAAc,SAAS,uBAAuB;;;;EAK9C,gBAAgB,SAAS,6BAA6B;;;;EAKtD,eAAe,SAAS,4BAA4B;;;;EAKpD,mBAAmB,SAAS,4BAA4B;;wBAG1C,gBACd,UAAS,4BACR;qBA4EU,WAAS;;;cCjKT,mEAAgC;;;;;;;;;;;KAejC,6BAA6B,mBAChC;;;qBCrBI;;;;wBCMG,2BACd,SAAS,wBAAwB,sEAAkC"}
|