@hebo-ai/gateway 0.10.7 → 0.11.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/README.md +97 -84
- package/dist/config.js +21 -4
- package/dist/endpoints/chat-completions/handler.js +9 -5
- package/dist/endpoints/conversations/handler.js +3 -3
- package/dist/endpoints/embeddings/handler.js +2 -2
- package/dist/endpoints/messages/converters.js +17 -21
- package/dist/endpoints/messages/handler.js +5 -5
- package/dist/endpoints/responses/handler.js +9 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/alibaba/index.d.ts +2 -0
- package/dist/models/alibaba/index.js +2 -0
- package/dist/models/alibaba/middleware.d.ts +2 -0
- package/dist/models/alibaba/middleware.js +31 -0
- package/dist/models/alibaba/presets.d.ts +900 -0
- package/dist/models/alibaba/presets.js +252 -0
- package/dist/models/amazon/presets.d.ts +31 -31
- package/dist/models/anthropic/presets.d.ts +68 -68
- package/dist/models/cohere/presets.d.ts +38 -38
- package/dist/models/deepseek/index.d.ts +2 -0
- package/dist/models/deepseek/index.js +2 -0
- package/dist/models/deepseek/middleware.d.ts +2 -0
- package/dist/models/deepseek/middleware.js +25 -0
- package/dist/models/deepseek/presets.d.ts +51 -0
- package/dist/models/deepseek/presets.js +33 -0
- package/dist/models/google/presets.d.ts +94 -94
- package/dist/models/google/presets.js +3 -1
- package/dist/models/meta/presets.d.ts +84 -84
- package/dist/models/meta/presets.js +11 -12
- package/dist/models/minimax/index.d.ts +2 -0
- package/dist/models/minimax/index.js +2 -0
- package/dist/models/minimax/middleware.d.ts +2 -0
- package/dist/models/minimax/middleware.js +43 -0
- package/dist/models/minimax/presets.d.ts +99 -0
- package/dist/models/minimax/presets.js +47 -0
- package/dist/models/moonshot/index.d.ts +2 -0
- package/dist/models/moonshot/index.js +2 -0
- package/dist/models/moonshot/middleware.d.ts +2 -0
- package/dist/models/moonshot/middleware.js +32 -0
- package/dist/models/moonshot/presets.d.ts +104 -0
- package/dist/models/moonshot/presets.js +36 -0
- package/dist/models/openai/presets.d.ts +128 -128
- package/dist/models/openai/presets.js +1 -1
- package/dist/models/types.d.ts +1 -1
- package/dist/models/types.js +39 -0
- package/dist/models/voyage/presets.d.ts +46 -46
- package/dist/models/xai/index.d.ts +2 -0
- package/dist/models/xai/index.js +2 -0
- package/dist/models/xai/middleware.d.ts +2 -0
- package/dist/models/xai/middleware.js +37 -0
- package/dist/models/xai/presets.d.ts +210 -0
- package/dist/models/xai/presets.js +55 -0
- package/dist/models/zai/index.d.ts +2 -0
- package/dist/models/zai/index.js +2 -0
- package/dist/models/zai/middleware.d.ts +2 -0
- package/dist/models/zai/middleware.js +25 -0
- package/dist/models/zai/presets.d.ts +141 -0
- package/dist/models/zai/presets.js +41 -0
- package/dist/providers/alibaba/canonical.d.ts +3 -0
- package/dist/providers/alibaba/canonical.js +13 -0
- package/dist/providers/alibaba/index.d.ts +1 -0
- package/dist/providers/alibaba/index.js +1 -0
- package/dist/providers/bedrock/canonical.js +3 -0
- package/dist/providers/chutes/canonical.d.ts +3 -0
- package/dist/providers/chutes/canonical.js +14 -0
- package/dist/providers/chutes/index.d.ts +1 -0
- package/dist/providers/chutes/index.js +1 -0
- package/dist/providers/deepinfra/canonical.d.ts +3 -0
- package/dist/providers/deepinfra/canonical.js +40 -0
- package/dist/providers/deepinfra/index.d.ts +1 -0
- package/dist/providers/deepinfra/index.js +1 -0
- package/dist/providers/deepseek/canonical.d.ts +3 -0
- package/dist/providers/deepseek/canonical.js +9 -0
- package/dist/providers/deepseek/index.d.ts +1 -0
- package/dist/providers/deepseek/index.js +1 -0
- package/dist/providers/fireworks/canonical.d.ts +3 -0
- package/dist/providers/fireworks/canonical.js +27 -0
- package/dist/providers/fireworks/index.d.ts +2 -0
- package/dist/providers/fireworks/index.js +2 -0
- package/dist/providers/fireworks/middleware.d.ts +2 -0
- package/dist/providers/fireworks/middleware.js +35 -0
- package/dist/providers/groq/canonical.js +1 -1
- package/dist/providers/minimax/canonical.d.ts +3 -0
- package/dist/providers/minimax/canonical.js +9 -0
- package/dist/providers/minimax/index.d.ts +1 -0
- package/dist/providers/minimax/index.js +1 -0
- package/dist/providers/moonshot/canonical.d.ts +3 -0
- package/dist/providers/moonshot/canonical.js +6 -0
- package/dist/providers/moonshot/index.d.ts +1 -0
- package/dist/providers/moonshot/index.js +1 -0
- package/dist/providers/togetherai/canonical.d.ts +3 -0
- package/dist/providers/togetherai/canonical.js +24 -0
- package/dist/providers/togetherai/index.d.ts +1 -0
- package/dist/providers/togetherai/index.js +1 -0
- package/dist/providers/types.d.ts +1 -1
- package/dist/providers/types.js +10 -0
- package/dist/providers/vertex/canonical.js +5 -1
- package/dist/providers/xai/canonical.d.ts +3 -0
- package/dist/providers/xai/canonical.js +12 -0
- package/dist/providers/xai/index.d.ts +1 -0
- package/dist/providers/xai/index.js +1 -0
- package/dist/providers/zai/canonical.d.ts +3 -0
- package/dist/providers/zai/canonical.js +10 -0
- package/dist/providers/zai/index.d.ts +1 -0
- package/dist/providers/zai/index.js +1 -0
- package/dist/types.d.ts +30 -16
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/request.d.ts +2 -1
- package/dist/utils/request.js +35 -7
- package/package.json +133 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CatalogModel } from "../types";
|
|
2
|
-
export declare const commandA: import("../../utils
|
|
2
|
+
export declare const commandA: import("../../utils").Preset<"cohere/command-a", CatalogModel, {
|
|
3
3
|
name: string;
|
|
4
4
|
created: string;
|
|
5
5
|
context: number;
|
|
@@ -11,7 +11,7 @@ export declare const commandA: import("../../utils/preset").Preset<"cohere/comma
|
|
|
11
11
|
providers: readonly ["cohere", "azure"];
|
|
12
12
|
knowledge: string;
|
|
13
13
|
}>;
|
|
14
|
-
export declare const commandAReasoning: import("../../utils
|
|
14
|
+
export declare const commandAReasoning: import("../../utils").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
15
15
|
name: string;
|
|
16
16
|
created: string;
|
|
17
17
|
context: number;
|
|
@@ -23,7 +23,7 @@ export declare const commandAReasoning: import("../../utils/preset").Preset<"coh
|
|
|
23
23
|
providers: readonly ["cohere", "azure"];
|
|
24
24
|
knowledge: string;
|
|
25
25
|
}>;
|
|
26
|
-
export declare const commandATranslate: import("../../utils
|
|
26
|
+
export declare const commandATranslate: import("../../utils").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
27
27
|
name: string;
|
|
28
28
|
created: string;
|
|
29
29
|
context: number;
|
|
@@ -35,7 +35,7 @@ export declare const commandATranslate: import("../../utils/preset").Preset<"coh
|
|
|
35
35
|
providers: readonly ["cohere", "azure"];
|
|
36
36
|
knowledge: string;
|
|
37
37
|
}>;
|
|
38
|
-
export declare const commandAVision: import("../../utils
|
|
38
|
+
export declare const commandAVision: import("../../utils").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
39
39
|
name: string;
|
|
40
40
|
created: string;
|
|
41
41
|
context: number;
|
|
@@ -47,7 +47,7 @@ export declare const commandAVision: import("../../utils/preset").Preset<"cohere
|
|
|
47
47
|
providers: readonly ["cohere", "azure"];
|
|
48
48
|
knowledge: string;
|
|
49
49
|
}>;
|
|
50
|
-
export declare const commandR: import("../../utils
|
|
50
|
+
export declare const commandR: import("../../utils").Preset<"cohere/command-r", CatalogModel, {
|
|
51
51
|
name: string;
|
|
52
52
|
created: string;
|
|
53
53
|
context: number;
|
|
@@ -59,7 +59,7 @@ export declare const commandR: import("../../utils/preset").Preset<"cohere/comma
|
|
|
59
59
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
60
60
|
knowledge: string;
|
|
61
61
|
}>;
|
|
62
|
-
export declare const commandRPlus: import("../../utils
|
|
62
|
+
export declare const commandRPlus: import("../../utils").Preset<"cohere/command-r-plus", CatalogModel, {
|
|
63
63
|
name: string;
|
|
64
64
|
created: string;
|
|
65
65
|
context: number;
|
|
@@ -71,7 +71,7 @@ export declare const commandRPlus: import("../../utils/preset").Preset<"cohere/c
|
|
|
71
71
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
72
72
|
knowledge: string;
|
|
73
73
|
}>;
|
|
74
|
-
export declare const commandR7b: import("../../utils
|
|
74
|
+
export declare const commandR7b: import("../../utils").Preset<"cohere/command-r7b", CatalogModel, {
|
|
75
75
|
name: string;
|
|
76
76
|
created: string;
|
|
77
77
|
context: number;
|
|
@@ -83,7 +83,7 @@ export declare const commandR7b: import("../../utils/preset").Preset<"cohere/com
|
|
|
83
83
|
providers: readonly ["cohere", "azure"];
|
|
84
84
|
knowledge: string;
|
|
85
85
|
}>;
|
|
86
|
-
export declare const embed4: import("../../utils
|
|
86
|
+
export declare const embed4: import("../../utils").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
87
87
|
name: string;
|
|
88
88
|
created: string;
|
|
89
89
|
context: number;
|
|
@@ -93,7 +93,7 @@ export declare const embed4: import("../../utils/preset").Preset<"cohere/embed-v
|
|
|
93
93
|
output: readonly ["embedding"];
|
|
94
94
|
};
|
|
95
95
|
}>;
|
|
96
|
-
export declare const embedEnglishV3: import("../../utils
|
|
96
|
+
export declare const embedEnglishV3: import("../../utils").Preset<"cohere/embed-english-v3.0", CatalogModel, {
|
|
97
97
|
name: string;
|
|
98
98
|
created: string;
|
|
99
99
|
context: number;
|
|
@@ -103,7 +103,7 @@ export declare const embedEnglishV3: import("../../utils/preset").Preset<"cohere
|
|
|
103
103
|
output: readonly ["embedding"];
|
|
104
104
|
};
|
|
105
105
|
}>;
|
|
106
|
-
export declare const embedEnglishLightV3: import("../../utils
|
|
106
|
+
export declare const embedEnglishLightV3: import("../../utils").Preset<"cohere/embed-english-light-v3.0", CatalogModel, {
|
|
107
107
|
name: string;
|
|
108
108
|
created: string;
|
|
109
109
|
context: number;
|
|
@@ -113,7 +113,7 @@ export declare const embedEnglishLightV3: import("../../utils/preset").Preset<"c
|
|
|
113
113
|
output: readonly ["embedding"];
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
|
-
export declare const embedMultilingualV3: import("../../utils
|
|
116
|
+
export declare const embedMultilingualV3: import("../../utils").Preset<"cohere/embed-multilingual-v3.0", CatalogModel, {
|
|
117
117
|
name: string;
|
|
118
118
|
created: string;
|
|
119
119
|
context: number;
|
|
@@ -123,7 +123,7 @@ export declare const embedMultilingualV3: import("../../utils/preset").Preset<"c
|
|
|
123
123
|
output: readonly ["embedding"];
|
|
124
124
|
};
|
|
125
125
|
}>;
|
|
126
|
-
export declare const embedMultilingualLightV3: import("../../utils
|
|
126
|
+
export declare const embedMultilingualLightV3: import("../../utils").Preset<"cohere/embed-multilingual-light-v3.0", CatalogModel, {
|
|
127
127
|
name: string;
|
|
128
128
|
created: string;
|
|
129
129
|
context: number;
|
|
@@ -134,7 +134,7 @@ export declare const embedMultilingualLightV3: import("../../utils/preset").Pres
|
|
|
134
134
|
};
|
|
135
135
|
}>;
|
|
136
136
|
export declare const command: {
|
|
137
|
-
readonly latest: readonly [import("../../utils
|
|
137
|
+
readonly latest: readonly [import("../../utils").Preset<"cohere/command-a", CatalogModel, {
|
|
138
138
|
name: string;
|
|
139
139
|
created: string;
|
|
140
140
|
context: number;
|
|
@@ -146,7 +146,7 @@ export declare const command: {
|
|
|
146
146
|
providers: readonly ["cohere", "azure"];
|
|
147
147
|
knowledge: string;
|
|
148
148
|
}>];
|
|
149
|
-
readonly all: (import("../../utils
|
|
149
|
+
readonly all: (import("../../utils").Preset<"cohere/command-a", CatalogModel, {
|
|
150
150
|
name: string;
|
|
151
151
|
created: string;
|
|
152
152
|
context: number;
|
|
@@ -157,7 +157,7 @@ export declare const command: {
|
|
|
157
157
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
158
158
|
providers: readonly ["cohere", "azure"];
|
|
159
159
|
knowledge: string;
|
|
160
|
-
}> | import("../../utils
|
|
160
|
+
}> | import("../../utils").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
161
161
|
name: string;
|
|
162
162
|
created: string;
|
|
163
163
|
context: number;
|
|
@@ -168,7 +168,7 @@ export declare const command: {
|
|
|
168
168
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
169
169
|
providers: readonly ["cohere", "azure"];
|
|
170
170
|
knowledge: string;
|
|
171
|
-
}> | import("../../utils
|
|
171
|
+
}> | import("../../utils").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
172
172
|
name: string;
|
|
173
173
|
created: string;
|
|
174
174
|
context: number;
|
|
@@ -179,7 +179,7 @@ export declare const command: {
|
|
|
179
179
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
180
180
|
providers: readonly ["cohere", "azure"];
|
|
181
181
|
knowledge: string;
|
|
182
|
-
}> | import("../../utils
|
|
182
|
+
}> | import("../../utils").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
183
183
|
name: string;
|
|
184
184
|
created: string;
|
|
185
185
|
context: number;
|
|
@@ -190,7 +190,7 @@ export declare const command: {
|
|
|
190
190
|
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
191
191
|
providers: readonly ["cohere", "azure"];
|
|
192
192
|
knowledge: string;
|
|
193
|
-
}> | import("../../utils
|
|
193
|
+
}> | import("../../utils").Preset<"cohere/command-r", CatalogModel, {
|
|
194
194
|
name: string;
|
|
195
195
|
created: string;
|
|
196
196
|
context: number;
|
|
@@ -201,7 +201,7 @@ export declare const command: {
|
|
|
201
201
|
};
|
|
202
202
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
203
203
|
knowledge: string;
|
|
204
|
-
}> | import("../../utils
|
|
204
|
+
}> | import("../../utils").Preset<"cohere/command-r-plus", CatalogModel, {
|
|
205
205
|
name: string;
|
|
206
206
|
created: string;
|
|
207
207
|
context: number;
|
|
@@ -212,7 +212,7 @@ export declare const command: {
|
|
|
212
212
|
};
|
|
213
213
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
214
214
|
knowledge: string;
|
|
215
|
-
}> | import("../../utils
|
|
215
|
+
}> | import("../../utils").Preset<"cohere/command-r7b", CatalogModel, {
|
|
216
216
|
name: string;
|
|
217
217
|
created: string;
|
|
218
218
|
context: number;
|
|
@@ -224,7 +224,7 @@ export declare const command: {
|
|
|
224
224
|
providers: readonly ["cohere", "azure"];
|
|
225
225
|
knowledge: string;
|
|
226
226
|
}>)[];
|
|
227
|
-
readonly A: readonly [import("../../utils
|
|
227
|
+
readonly A: readonly [import("../../utils").Preset<"cohere/command-a", CatalogModel, {
|
|
228
228
|
name: string;
|
|
229
229
|
created: string;
|
|
230
230
|
context: number;
|
|
@@ -235,7 +235,7 @@ export declare const command: {
|
|
|
235
235
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
236
236
|
providers: readonly ["cohere", "azure"];
|
|
237
237
|
knowledge: string;
|
|
238
|
-
}>, import("../../utils
|
|
238
|
+
}>, import("../../utils").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
239
239
|
name: string;
|
|
240
240
|
created: string;
|
|
241
241
|
context: number;
|
|
@@ -246,7 +246,7 @@ export declare const command: {
|
|
|
246
246
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
247
247
|
providers: readonly ["cohere", "azure"];
|
|
248
248
|
knowledge: string;
|
|
249
|
-
}>, import("../../utils
|
|
249
|
+
}>, import("../../utils").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
250
250
|
name: string;
|
|
251
251
|
created: string;
|
|
252
252
|
context: number;
|
|
@@ -257,7 +257,7 @@ export declare const command: {
|
|
|
257
257
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
258
258
|
providers: readonly ["cohere", "azure"];
|
|
259
259
|
knowledge: string;
|
|
260
|
-
}>, import("../../utils
|
|
260
|
+
}>, import("../../utils").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
261
261
|
name: string;
|
|
262
262
|
created: string;
|
|
263
263
|
context: number;
|
|
@@ -269,7 +269,7 @@ export declare const command: {
|
|
|
269
269
|
providers: readonly ["cohere", "azure"];
|
|
270
270
|
knowledge: string;
|
|
271
271
|
}>];
|
|
272
|
-
readonly R: readonly [import("../../utils
|
|
272
|
+
readonly R: readonly [import("../../utils").Preset<"cohere/command-r", CatalogModel, {
|
|
273
273
|
name: string;
|
|
274
274
|
created: string;
|
|
275
275
|
context: number;
|
|
@@ -280,7 +280,7 @@ export declare const command: {
|
|
|
280
280
|
};
|
|
281
281
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
282
282
|
knowledge: string;
|
|
283
|
-
}>, import("../../utils
|
|
283
|
+
}>, import("../../utils").Preset<"cohere/command-r-plus", CatalogModel, {
|
|
284
284
|
name: string;
|
|
285
285
|
created: string;
|
|
286
286
|
context: number;
|
|
@@ -291,7 +291,7 @@ export declare const command: {
|
|
|
291
291
|
};
|
|
292
292
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
293
293
|
knowledge: string;
|
|
294
|
-
}>, import("../../utils
|
|
294
|
+
}>, import("../../utils").Preset<"cohere/command-r7b", CatalogModel, {
|
|
295
295
|
name: string;
|
|
296
296
|
created: string;
|
|
297
297
|
context: number;
|
|
@@ -305,7 +305,7 @@ export declare const command: {
|
|
|
305
305
|
}>];
|
|
306
306
|
};
|
|
307
307
|
export declare const embed: {
|
|
308
|
-
readonly latest: readonly [import("../../utils
|
|
308
|
+
readonly latest: readonly [import("../../utils").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
309
309
|
name: string;
|
|
310
310
|
created: string;
|
|
311
311
|
context: number;
|
|
@@ -315,7 +315,7 @@ export declare const embed: {
|
|
|
315
315
|
output: readonly ["embedding"];
|
|
316
316
|
};
|
|
317
317
|
}>];
|
|
318
|
-
readonly all: (import("../../utils
|
|
318
|
+
readonly all: (import("../../utils").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
319
319
|
name: string;
|
|
320
320
|
created: string;
|
|
321
321
|
context: number;
|
|
@@ -324,7 +324,7 @@ export declare const embed: {
|
|
|
324
324
|
input: readonly ["text", "image", "pdf"];
|
|
325
325
|
output: readonly ["embedding"];
|
|
326
326
|
};
|
|
327
|
-
}> | import("../../utils
|
|
327
|
+
}> | import("../../utils").Preset<"cohere/embed-english-v3.0", CatalogModel, {
|
|
328
328
|
name: string;
|
|
329
329
|
created: string;
|
|
330
330
|
context: number;
|
|
@@ -333,7 +333,7 @@ export declare const embed: {
|
|
|
333
333
|
input: readonly ["text", "image"];
|
|
334
334
|
output: readonly ["embedding"];
|
|
335
335
|
};
|
|
336
|
-
}> | import("../../utils
|
|
336
|
+
}> | import("../../utils").Preset<"cohere/embed-english-light-v3.0", CatalogModel, {
|
|
337
337
|
name: string;
|
|
338
338
|
created: string;
|
|
339
339
|
context: number;
|
|
@@ -342,7 +342,7 @@ export declare const embed: {
|
|
|
342
342
|
input: readonly ["text", "image"];
|
|
343
343
|
output: readonly ["embedding"];
|
|
344
344
|
};
|
|
345
|
-
}> | import("../../utils
|
|
345
|
+
}> | import("../../utils").Preset<"cohere/embed-multilingual-v3.0", CatalogModel, {
|
|
346
346
|
name: string;
|
|
347
347
|
created: string;
|
|
348
348
|
context: number;
|
|
@@ -351,7 +351,7 @@ export declare const embed: {
|
|
|
351
351
|
input: readonly ["text", "image"];
|
|
352
352
|
output: readonly ["embedding"];
|
|
353
353
|
};
|
|
354
|
-
}> | import("../../utils
|
|
354
|
+
}> | import("../../utils").Preset<"cohere/embed-multilingual-light-v3.0", CatalogModel, {
|
|
355
355
|
name: string;
|
|
356
356
|
created: string;
|
|
357
357
|
context: number;
|
|
@@ -361,7 +361,7 @@ export declare const embed: {
|
|
|
361
361
|
output: readonly ["embedding"];
|
|
362
362
|
};
|
|
363
363
|
}>)[];
|
|
364
|
-
readonly v4: readonly [import("../../utils
|
|
364
|
+
readonly v4: readonly [import("../../utils").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
365
365
|
name: string;
|
|
366
366
|
created: string;
|
|
367
367
|
context: number;
|
|
@@ -371,7 +371,7 @@ export declare const embed: {
|
|
|
371
371
|
output: readonly ["embedding"];
|
|
372
372
|
};
|
|
373
373
|
}>];
|
|
374
|
-
readonly v3: readonly [import("../../utils
|
|
374
|
+
readonly v3: readonly [import("../../utils").Preset<"cohere/embed-english-v3.0", CatalogModel, {
|
|
375
375
|
name: string;
|
|
376
376
|
created: string;
|
|
377
377
|
context: number;
|
|
@@ -380,7 +380,7 @@ export declare const embed: {
|
|
|
380
380
|
input: readonly ["text", "image"];
|
|
381
381
|
output: readonly ["embedding"];
|
|
382
382
|
};
|
|
383
|
-
}>, import("../../utils
|
|
383
|
+
}>, import("../../utils").Preset<"cohere/embed-english-light-v3.0", CatalogModel, {
|
|
384
384
|
name: string;
|
|
385
385
|
created: string;
|
|
386
386
|
context: number;
|
|
@@ -389,7 +389,7 @@ export declare const embed: {
|
|
|
389
389
|
input: readonly ["text", "image"];
|
|
390
390
|
output: readonly ["embedding"];
|
|
391
391
|
};
|
|
392
|
-
}>, import("../../utils
|
|
392
|
+
}>, import("../../utils").Preset<"cohere/embed-multilingual-v3.0", CatalogModel, {
|
|
393
393
|
name: string;
|
|
394
394
|
created: string;
|
|
395
395
|
context: number;
|
|
@@ -398,7 +398,7 @@ export declare const embed: {
|
|
|
398
398
|
input: readonly ["text", "image"];
|
|
399
399
|
output: readonly ["embedding"];
|
|
400
400
|
};
|
|
401
|
-
}>, import("../../utils
|
|
401
|
+
}>, import("../../utils").Preset<"cohere/embed-multilingual-light-v3.0", CatalogModel, {
|
|
402
402
|
name: string;
|
|
403
403
|
created: string;
|
|
404
404
|
context: number;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { modelMiddlewareMatcher } from "../../middleware/matcher";
|
|
2
|
+
export const deepseekReasoningMiddleware = {
|
|
3
|
+
specificationVersion: "v3",
|
|
4
|
+
// oxlint-disable-next-line require-await
|
|
5
|
+
transformParams: async ({ params }) => {
|
|
6
|
+
const unknown = params.providerOptions?.["unknown"];
|
|
7
|
+
if (!unknown)
|
|
8
|
+
return params;
|
|
9
|
+
const reasoning = unknown["reasoning"];
|
|
10
|
+
if (!reasoning)
|
|
11
|
+
return params;
|
|
12
|
+
const target = (params.providerOptions["deepseek"] ??= {});
|
|
13
|
+
if (reasoning.enabled === false || reasoning.effort === "none") {
|
|
14
|
+
target.thinking = { type: "disabled" };
|
|
15
|
+
}
|
|
16
|
+
else if (reasoning.enabled) {
|
|
17
|
+
target.thinking = { type: "enabled" };
|
|
18
|
+
}
|
|
19
|
+
delete unknown["reasoning"];
|
|
20
|
+
return params;
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
modelMiddlewareMatcher.useForModel("deepseek/deepseek-v3.2", {
|
|
24
|
+
language: [deepseekReasoningMiddleware],
|
|
25
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { CatalogModel } from "../types";
|
|
2
|
+
export declare const deepseekV32: import("../../utils").Preset<"deepseek/deepseek-v3.2", CatalogModel, {
|
|
3
|
+
name: string;
|
|
4
|
+
created: string;
|
|
5
|
+
knowledge: string;
|
|
6
|
+
context: number;
|
|
7
|
+
modalities: {
|
|
8
|
+
input: readonly ["text"];
|
|
9
|
+
output: readonly ["text"];
|
|
10
|
+
};
|
|
11
|
+
capabilities: readonly ["reasoning", "tool_call", "structured_output", "temperature"];
|
|
12
|
+
providers: readonly ["deepseek", "alibaba", "deepinfra", "fireworks", "chutes", "vertex"];
|
|
13
|
+
}>;
|
|
14
|
+
export declare const deepseek: {
|
|
15
|
+
readonly latest: readonly [import("../../utils").Preset<"deepseek/deepseek-v3.2", CatalogModel, {
|
|
16
|
+
name: string;
|
|
17
|
+
created: string;
|
|
18
|
+
knowledge: string;
|
|
19
|
+
context: number;
|
|
20
|
+
modalities: {
|
|
21
|
+
input: readonly ["text"];
|
|
22
|
+
output: readonly ["text"];
|
|
23
|
+
};
|
|
24
|
+
capabilities: readonly ["reasoning", "tool_call", "structured_output", "temperature"];
|
|
25
|
+
providers: readonly ["deepseek", "alibaba", "deepinfra", "fireworks", "chutes", "vertex"];
|
|
26
|
+
}>];
|
|
27
|
+
readonly all: import("../../utils").Preset<"deepseek/deepseek-v3.2", CatalogModel, {
|
|
28
|
+
name: string;
|
|
29
|
+
created: string;
|
|
30
|
+
knowledge: string;
|
|
31
|
+
context: number;
|
|
32
|
+
modalities: {
|
|
33
|
+
input: readonly ["text"];
|
|
34
|
+
output: readonly ["text"];
|
|
35
|
+
};
|
|
36
|
+
capabilities: readonly ["reasoning", "tool_call", "structured_output", "temperature"];
|
|
37
|
+
providers: readonly ["deepseek", "alibaba", "deepinfra", "fireworks", "chutes", "vertex"];
|
|
38
|
+
}>[];
|
|
39
|
+
readonly "v3.2": readonly [import("../../utils").Preset<"deepseek/deepseek-v3.2", CatalogModel, {
|
|
40
|
+
name: string;
|
|
41
|
+
created: string;
|
|
42
|
+
knowledge: string;
|
|
43
|
+
context: number;
|
|
44
|
+
modalities: {
|
|
45
|
+
input: readonly ["text"];
|
|
46
|
+
output: readonly ["text"];
|
|
47
|
+
};
|
|
48
|
+
capabilities: readonly ["reasoning", "tool_call", "structured_output", "temperature"];
|
|
49
|
+
providers: readonly ["deepseek", "alibaba", "deepinfra", "fireworks", "chutes", "vertex"];
|
|
50
|
+
}>];
|
|
51
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { presetFor } from "../../utils/preset";
|
|
2
|
+
const DEEPSEEK_BASE = {
|
|
3
|
+
modalities: {
|
|
4
|
+
input: ["text"],
|
|
5
|
+
output: ["text"],
|
|
6
|
+
},
|
|
7
|
+
capabilities: ["reasoning", "tool_call", "structured_output", "temperature"],
|
|
8
|
+
providers: [
|
|
9
|
+
"deepseek",
|
|
10
|
+
"alibaba",
|
|
11
|
+
"deepinfra",
|
|
12
|
+
"fireworks",
|
|
13
|
+
"chutes",
|
|
14
|
+
"vertex",
|
|
15
|
+
],
|
|
16
|
+
};
|
|
17
|
+
export const deepseekV32 = presetFor()("deepseek/deepseek-v3.2", {
|
|
18
|
+
...DEEPSEEK_BASE,
|
|
19
|
+
name: "DeepSeek V3.2",
|
|
20
|
+
created: "2025-12-01",
|
|
21
|
+
knowledge: "2024-12",
|
|
22
|
+
context: 131072,
|
|
23
|
+
});
|
|
24
|
+
const deepseekAtomic = {
|
|
25
|
+
"v3.2": [deepseekV32],
|
|
26
|
+
};
|
|
27
|
+
const deepseekGroups = {};
|
|
28
|
+
export const deepseek = {
|
|
29
|
+
...deepseekAtomic,
|
|
30
|
+
...deepseekGroups,
|
|
31
|
+
latest: [...deepseekAtomic["v3.2"]],
|
|
32
|
+
all: Object.values(deepseekAtomic).flat(),
|
|
33
|
+
};
|