@hebo-ai/gateway 0.8.0 → 0.8.2
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 +13 -8
- package/dist/endpoints/chat-completions/otel.js +3 -1
- package/dist/endpoints/conversations/storage/dialects/mysql.js +3 -1
- package/dist/endpoints/conversations/storage/dialects/postgres.js +8 -2
- package/dist/endpoints/conversations/storage/dialects/sqlite.js +3 -1
- package/dist/models/anthropic/presets.d.ts +62 -62
- package/dist/models/anthropic/presets.js +1 -1
- package/dist/models/cohere/presets.d.ts +32 -32
- package/dist/models/cohere/presets.js +9 -9
- package/dist/models/meta/presets.d.ts +42 -42
- package/dist/models/meta/presets.js +2 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const CLAUDE_BASE = {
|
|
|
6
6
|
},
|
|
7
7
|
capabilities: ["attachments", "tool_call", "structured_output", "temperature"],
|
|
8
8
|
context: 200000,
|
|
9
|
-
providers: ["anthropic", "bedrock", "vertex"],
|
|
9
|
+
providers: ["anthropic", "bedrock", "vertex", "azure"],
|
|
10
10
|
};
|
|
11
11
|
const CLAUDE_PDF_MODALITIES = {
|
|
12
12
|
modalities: {
|
|
@@ -8,7 +8,7 @@ export declare const commandA: import("../../utils/preset").Preset<"cohere/comma
|
|
|
8
8
|
output: readonly ["text"];
|
|
9
9
|
};
|
|
10
10
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
11
|
-
providers: readonly ["cohere"];
|
|
11
|
+
providers: readonly ["cohere", "azure"];
|
|
12
12
|
knowledge: string;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const commandAReasoning: import("../../utils/preset").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
@@ -20,7 +20,7 @@ export declare const commandAReasoning: import("../../utils/preset").Preset<"coh
|
|
|
20
20
|
output: readonly ["text"];
|
|
21
21
|
};
|
|
22
22
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
23
|
-
providers: readonly ["cohere"];
|
|
23
|
+
providers: readonly ["cohere", "azure"];
|
|
24
24
|
knowledge: string;
|
|
25
25
|
}>;
|
|
26
26
|
export declare const commandATranslate: import("../../utils/preset").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
@@ -32,7 +32,7 @@ export declare const commandATranslate: import("../../utils/preset").Preset<"coh
|
|
|
32
32
|
output: readonly ["text"];
|
|
33
33
|
};
|
|
34
34
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
35
|
-
providers: readonly ["cohere"];
|
|
35
|
+
providers: readonly ["cohere", "azure"];
|
|
36
36
|
knowledge: string;
|
|
37
37
|
}>;
|
|
38
38
|
export declare const commandAVision: import("../../utils/preset").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
@@ -44,14 +44,14 @@ export declare const commandAVision: import("../../utils/preset").Preset<"cohere
|
|
|
44
44
|
output: readonly ["text"];
|
|
45
45
|
};
|
|
46
46
|
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
47
|
-
providers: readonly ["cohere"];
|
|
47
|
+
providers: readonly ["cohere", "azure"];
|
|
48
48
|
knowledge: string;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const commandR: import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
|
|
51
51
|
name: string;
|
|
52
52
|
created: string;
|
|
53
53
|
context: number;
|
|
54
|
-
providers: ("bedrock" | "cohere")[];
|
|
54
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
55
55
|
modalities: {
|
|
56
56
|
input: readonly ["text"];
|
|
57
57
|
output: readonly ["text"];
|
|
@@ -63,7 +63,7 @@ export declare const commandRPlus: import("../../utils/preset").Preset<"cohere/c
|
|
|
63
63
|
name: string;
|
|
64
64
|
created: string;
|
|
65
65
|
context: number;
|
|
66
|
-
providers: ("bedrock" | "cohere")[];
|
|
66
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
67
67
|
modalities: {
|
|
68
68
|
input: readonly ["text"];
|
|
69
69
|
output: readonly ["text"];
|
|
@@ -80,14 +80,14 @@ export declare const commandR7b: import("../../utils/preset").Preset<"cohere/com
|
|
|
80
80
|
output: readonly ["text"];
|
|
81
81
|
};
|
|
82
82
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
83
|
-
providers: readonly ["cohere"];
|
|
83
|
+
providers: readonly ["cohere", "azure"];
|
|
84
84
|
knowledge: string;
|
|
85
85
|
}>;
|
|
86
86
|
export declare const embed4: import("../../utils/preset").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
87
87
|
name: string;
|
|
88
88
|
created: string;
|
|
89
89
|
context: number;
|
|
90
|
-
providers: ("bedrock" | "cohere")[];
|
|
90
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
91
91
|
modalities: {
|
|
92
92
|
input: readonly ["text", "image", "pdf"];
|
|
93
93
|
output: readonly ["embedding"];
|
|
@@ -97,7 +97,7 @@ export declare const embedEnglishV3: import("../../utils/preset").Preset<"cohere
|
|
|
97
97
|
name: string;
|
|
98
98
|
created: string;
|
|
99
99
|
context: number;
|
|
100
|
-
providers: ("bedrock" | "cohere")[];
|
|
100
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
101
101
|
modalities: {
|
|
102
102
|
input: readonly ["text", "image"];
|
|
103
103
|
output: readonly ["embedding"];
|
|
@@ -117,7 +117,7 @@ export declare const embedMultilingualV3: import("../../utils/preset").Preset<"c
|
|
|
117
117
|
name: string;
|
|
118
118
|
created: string;
|
|
119
119
|
context: number;
|
|
120
|
-
providers: ("bedrock" | "cohere")[];
|
|
120
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
121
121
|
modalities: {
|
|
122
122
|
input: readonly ["text", "image"];
|
|
123
123
|
output: readonly ["embedding"];
|
|
@@ -143,7 +143,7 @@ export declare const command: {
|
|
|
143
143
|
output: readonly ["text"];
|
|
144
144
|
};
|
|
145
145
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
146
|
-
providers: readonly ["cohere"];
|
|
146
|
+
providers: readonly ["cohere", "azure"];
|
|
147
147
|
knowledge: string;
|
|
148
148
|
}>];
|
|
149
149
|
readonly all: (import("../../utils/preset").Preset<"cohere/command-a", CatalogModel, {
|
|
@@ -155,7 +155,7 @@ export declare const command: {
|
|
|
155
155
|
output: readonly ["text"];
|
|
156
156
|
};
|
|
157
157
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
158
|
-
providers: readonly ["cohere"];
|
|
158
|
+
providers: readonly ["cohere", "azure"];
|
|
159
159
|
knowledge: string;
|
|
160
160
|
}> | import("../../utils/preset").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
161
161
|
name: string;
|
|
@@ -166,7 +166,7 @@ export declare const command: {
|
|
|
166
166
|
output: readonly ["text"];
|
|
167
167
|
};
|
|
168
168
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
169
|
-
providers: readonly ["cohere"];
|
|
169
|
+
providers: readonly ["cohere", "azure"];
|
|
170
170
|
knowledge: string;
|
|
171
171
|
}> | import("../../utils/preset").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
172
172
|
name: string;
|
|
@@ -177,7 +177,7 @@ export declare const command: {
|
|
|
177
177
|
output: readonly ["text"];
|
|
178
178
|
};
|
|
179
179
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
180
|
-
providers: readonly ["cohere"];
|
|
180
|
+
providers: readonly ["cohere", "azure"];
|
|
181
181
|
knowledge: string;
|
|
182
182
|
}> | import("../../utils/preset").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
183
183
|
name: string;
|
|
@@ -188,13 +188,13 @@ export declare const command: {
|
|
|
188
188
|
output: readonly ["text"];
|
|
189
189
|
};
|
|
190
190
|
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
191
|
-
providers: readonly ["cohere"];
|
|
191
|
+
providers: readonly ["cohere", "azure"];
|
|
192
192
|
knowledge: string;
|
|
193
193
|
}> | import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
|
|
194
194
|
name: string;
|
|
195
195
|
created: string;
|
|
196
196
|
context: number;
|
|
197
|
-
providers: ("bedrock" | "cohere")[];
|
|
197
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
198
198
|
modalities: {
|
|
199
199
|
input: readonly ["text"];
|
|
200
200
|
output: readonly ["text"];
|
|
@@ -205,7 +205,7 @@ export declare const command: {
|
|
|
205
205
|
name: string;
|
|
206
206
|
created: string;
|
|
207
207
|
context: number;
|
|
208
|
-
providers: ("bedrock" | "cohere")[];
|
|
208
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
209
209
|
modalities: {
|
|
210
210
|
input: readonly ["text"];
|
|
211
211
|
output: readonly ["text"];
|
|
@@ -221,7 +221,7 @@ export declare const command: {
|
|
|
221
221
|
output: readonly ["text"];
|
|
222
222
|
};
|
|
223
223
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
224
|
-
providers: readonly ["cohere"];
|
|
224
|
+
providers: readonly ["cohere", "azure"];
|
|
225
225
|
knowledge: string;
|
|
226
226
|
}>)[];
|
|
227
227
|
readonly A: readonly [import("../../utils/preset").Preset<"cohere/command-a", CatalogModel, {
|
|
@@ -233,7 +233,7 @@ export declare const command: {
|
|
|
233
233
|
output: readonly ["text"];
|
|
234
234
|
};
|
|
235
235
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
236
|
-
providers: readonly ["cohere"];
|
|
236
|
+
providers: readonly ["cohere", "azure"];
|
|
237
237
|
knowledge: string;
|
|
238
238
|
}>, import("../../utils/preset").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
239
239
|
name: string;
|
|
@@ -244,7 +244,7 @@ export declare const command: {
|
|
|
244
244
|
output: readonly ["text"];
|
|
245
245
|
};
|
|
246
246
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
247
|
-
providers: readonly ["cohere"];
|
|
247
|
+
providers: readonly ["cohere", "azure"];
|
|
248
248
|
knowledge: string;
|
|
249
249
|
}>, import("../../utils/preset").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
250
250
|
name: string;
|
|
@@ -255,7 +255,7 @@ export declare const command: {
|
|
|
255
255
|
output: readonly ["text"];
|
|
256
256
|
};
|
|
257
257
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
258
|
-
providers: readonly ["cohere"];
|
|
258
|
+
providers: readonly ["cohere", "azure"];
|
|
259
259
|
knowledge: string;
|
|
260
260
|
}>, import("../../utils/preset").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
261
261
|
name: string;
|
|
@@ -266,14 +266,14 @@ export declare const command: {
|
|
|
266
266
|
output: readonly ["text"];
|
|
267
267
|
};
|
|
268
268
|
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
269
|
-
providers: readonly ["cohere"];
|
|
269
|
+
providers: readonly ["cohere", "azure"];
|
|
270
270
|
knowledge: string;
|
|
271
271
|
}>];
|
|
272
272
|
readonly R: readonly [import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
|
|
273
273
|
name: string;
|
|
274
274
|
created: string;
|
|
275
275
|
context: number;
|
|
276
|
-
providers: ("bedrock" | "cohere")[];
|
|
276
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
277
277
|
modalities: {
|
|
278
278
|
input: readonly ["text"];
|
|
279
279
|
output: readonly ["text"];
|
|
@@ -284,7 +284,7 @@ export declare const command: {
|
|
|
284
284
|
name: string;
|
|
285
285
|
created: string;
|
|
286
286
|
context: number;
|
|
287
|
-
providers: ("bedrock" | "cohere")[];
|
|
287
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
288
288
|
modalities: {
|
|
289
289
|
input: readonly ["text"];
|
|
290
290
|
output: readonly ["text"];
|
|
@@ -300,7 +300,7 @@ export declare const command: {
|
|
|
300
300
|
output: readonly ["text"];
|
|
301
301
|
};
|
|
302
302
|
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
303
|
-
providers: readonly ["cohere"];
|
|
303
|
+
providers: readonly ["cohere", "azure"];
|
|
304
304
|
knowledge: string;
|
|
305
305
|
}>];
|
|
306
306
|
};
|
|
@@ -309,7 +309,7 @@ export declare const embed: {
|
|
|
309
309
|
name: string;
|
|
310
310
|
created: string;
|
|
311
311
|
context: number;
|
|
312
|
-
providers: ("bedrock" | "cohere")[];
|
|
312
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
313
313
|
modalities: {
|
|
314
314
|
input: readonly ["text", "image", "pdf"];
|
|
315
315
|
output: readonly ["embedding"];
|
|
@@ -319,7 +319,7 @@ export declare const embed: {
|
|
|
319
319
|
name: string;
|
|
320
320
|
created: string;
|
|
321
321
|
context: number;
|
|
322
|
-
providers: ("bedrock" | "cohere")[];
|
|
322
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
323
323
|
modalities: {
|
|
324
324
|
input: readonly ["text", "image", "pdf"];
|
|
325
325
|
output: readonly ["embedding"];
|
|
@@ -328,7 +328,7 @@ export declare const embed: {
|
|
|
328
328
|
name: string;
|
|
329
329
|
created: string;
|
|
330
330
|
context: number;
|
|
331
|
-
providers: ("bedrock" | "cohere")[];
|
|
331
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
332
332
|
modalities: {
|
|
333
333
|
input: readonly ["text", "image"];
|
|
334
334
|
output: readonly ["embedding"];
|
|
@@ -346,7 +346,7 @@ export declare const embed: {
|
|
|
346
346
|
name: string;
|
|
347
347
|
created: string;
|
|
348
348
|
context: number;
|
|
349
|
-
providers: ("bedrock" | "cohere")[];
|
|
349
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
350
350
|
modalities: {
|
|
351
351
|
input: readonly ["text", "image"];
|
|
352
352
|
output: readonly ["embedding"];
|
|
@@ -365,7 +365,7 @@ export declare const embed: {
|
|
|
365
365
|
name: string;
|
|
366
366
|
created: string;
|
|
367
367
|
context: number;
|
|
368
|
-
providers: ("bedrock" | "cohere")[];
|
|
368
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
369
369
|
modalities: {
|
|
370
370
|
input: readonly ["text", "image", "pdf"];
|
|
371
371
|
output: readonly ["embedding"];
|
|
@@ -375,7 +375,7 @@ export declare const embed: {
|
|
|
375
375
|
name: string;
|
|
376
376
|
created: string;
|
|
377
377
|
context: number;
|
|
378
|
-
providers: ("bedrock" | "cohere")[];
|
|
378
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
379
379
|
modalities: {
|
|
380
380
|
input: readonly ["text", "image"];
|
|
381
381
|
output: readonly ["embedding"];
|
|
@@ -393,7 +393,7 @@ export declare const embed: {
|
|
|
393
393
|
name: string;
|
|
394
394
|
created: string;
|
|
395
395
|
context: number;
|
|
396
|
-
providers: ("bedrock" | "cohere")[];
|
|
396
|
+
providers: ("azure" | "bedrock" | "cohere")[];
|
|
397
397
|
modalities: {
|
|
398
398
|
input: readonly ["text", "image"];
|
|
399
399
|
output: readonly ["embedding"];
|
|
@@ -5,7 +5,7 @@ const COMMAND_BASE = {
|
|
|
5
5
|
output: ["text"],
|
|
6
6
|
},
|
|
7
7
|
capabilities: ["tool_call", "structured_output", "reasoning", "temperature"],
|
|
8
|
-
providers: ["cohere"],
|
|
8
|
+
providers: ["cohere", "azure"],
|
|
9
9
|
knowledge: "2024-06",
|
|
10
10
|
};
|
|
11
11
|
const COMMAND_VISION_BASE = {
|
|
@@ -14,7 +14,7 @@ const COMMAND_VISION_BASE = {
|
|
|
14
14
|
output: ["text"],
|
|
15
15
|
},
|
|
16
16
|
capabilities: ["structured_output", "reasoning", "temperature"],
|
|
17
|
-
providers: ["cohere"],
|
|
17
|
+
providers: ["cohere", "azure"],
|
|
18
18
|
knowledge: "2024-06",
|
|
19
19
|
};
|
|
20
20
|
const EMBED_V3_BASE = {
|
|
@@ -22,14 +22,14 @@ const EMBED_V3_BASE = {
|
|
|
22
22
|
input: ["text", "image"],
|
|
23
23
|
output: ["embedding"],
|
|
24
24
|
},
|
|
25
|
-
providers: ["cohere"],
|
|
25
|
+
providers: ["cohere", "azure"],
|
|
26
26
|
};
|
|
27
27
|
const EMBED_V4_BASE = {
|
|
28
28
|
modalities: {
|
|
29
29
|
input: ["text", "image", "pdf"],
|
|
30
30
|
output: ["embedding"],
|
|
31
31
|
},
|
|
32
|
-
providers: ["cohere"],
|
|
32
|
+
providers: ["cohere", "azure"],
|
|
33
33
|
};
|
|
34
34
|
export const commandA = presetFor()("cohere/command-a", {
|
|
35
35
|
...COMMAND_BASE,
|
|
@@ -60,14 +60,14 @@ export const commandR = presetFor()("cohere/command-r", {
|
|
|
60
60
|
name: "Cohere Command R",
|
|
61
61
|
created: "2024-08-01",
|
|
62
62
|
context: 128000,
|
|
63
|
-
providers: ["cohere", "bedrock"],
|
|
63
|
+
providers: ["cohere", "bedrock", "azure"],
|
|
64
64
|
});
|
|
65
65
|
export const commandRPlus = presetFor()("cohere/command-r-plus", {
|
|
66
66
|
...COMMAND_BASE,
|
|
67
67
|
name: "Cohere Command R+",
|
|
68
68
|
created: "2024-08-01",
|
|
69
69
|
context: 128000,
|
|
70
|
-
providers: ["cohere", "bedrock"],
|
|
70
|
+
providers: ["cohere", "bedrock", "azure"],
|
|
71
71
|
});
|
|
72
72
|
export const commandR7b = presetFor()("cohere/command-r7b", {
|
|
73
73
|
...COMMAND_BASE,
|
|
@@ -80,14 +80,14 @@ export const embed4 = presetFor()("cohere/embed-v4.0", {
|
|
|
80
80
|
name: "Cohere 4 Embeddings",
|
|
81
81
|
created: "2025-04-15",
|
|
82
82
|
context: 128000,
|
|
83
|
-
providers: ["cohere", "bedrock"],
|
|
83
|
+
providers: ["cohere", "bedrock", "azure"],
|
|
84
84
|
});
|
|
85
85
|
export const embedEnglishV3 = presetFor()("cohere/embed-english-v3.0", {
|
|
86
86
|
...EMBED_V3_BASE,
|
|
87
87
|
name: "Cohere Embed English v3",
|
|
88
88
|
created: "2024-02-07",
|
|
89
89
|
context: 512,
|
|
90
|
-
providers: ["cohere", "bedrock"],
|
|
90
|
+
providers: ["cohere", "bedrock", "azure"],
|
|
91
91
|
});
|
|
92
92
|
export const embedEnglishLightV3 = presetFor()("cohere/embed-english-light-v3.0", {
|
|
93
93
|
...EMBED_V3_BASE,
|
|
@@ -101,7 +101,7 @@ export const embedMultilingualV3 = presetFor()("cohere/embed-multilingual-v3.0",
|
|
|
101
101
|
name: "Cohere Embed Multilingual v3",
|
|
102
102
|
created: "2024-02-07",
|
|
103
103
|
context: 512,
|
|
104
|
-
providers: ["cohere", "bedrock"],
|
|
104
|
+
providers: ["cohere", "bedrock", "azure"],
|
|
105
105
|
});
|
|
106
106
|
export const embedMultilingualLightV3 = presetFor()("cohere/embed-multilingual-light-v3.0", {
|
|
107
107
|
...EMBED_V3_BASE,
|