@hebo-ai/gateway 0.11.1 → 0.11.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/dist/endpoints/conversations/storage/dialects/utils.d.ts +1 -1
- package/dist/endpoints/messages/converters.js +9 -6
- package/dist/models/openai/presets.d.ts +114 -1
- package/dist/models/openai/presets.js +19 -2
- package/dist/models/types.d.ts +1 -1
- package/dist/models/types.js +2 -0
- package/dist/utils/preset.js +1 -0
- package/package.json +13 -13
|
@@ -6,7 +6,7 @@ export declare function createParamsMapper(mappers: ((v: unknown) => unknown)[])
|
|
|
6
6
|
* Normalizes an object (row) by applying a chain of atomic mappers.
|
|
7
7
|
* Mappers are expected to mutate the object for performance and to avoid spreads.
|
|
8
8
|
*/
|
|
9
|
-
export declare function createRowMapper<T>(mappers: ((row:
|
|
9
|
+
export declare function createRowMapper<T>(mappers: ((row: T) => T)[]): (row: T) => T;
|
|
10
10
|
/**
|
|
11
11
|
* Atomic mappers for input parameters.
|
|
12
12
|
*/
|
|
@@ -541,17 +541,20 @@ export class MessagesTransformStream extends TransformStream {
|
|
|
541
541
|
}
|
|
542
542
|
case "tool-input-start": {
|
|
543
543
|
currentToolCallId = part.id;
|
|
544
|
+
const contentBlock = {
|
|
545
|
+
type: "tool_use",
|
|
546
|
+
id: part.id,
|
|
547
|
+
name: normalizeToolName(part.toolName),
|
|
548
|
+
input: {},
|
|
549
|
+
};
|
|
550
|
+
if (part.providerMetadata)
|
|
551
|
+
contentBlock.extra_content = part.providerMetadata;
|
|
544
552
|
controller.enqueue({
|
|
545
553
|
event: "content_block_start",
|
|
546
554
|
data: {
|
|
547
555
|
type: "content_block_start",
|
|
548
556
|
index: blockIndex,
|
|
549
|
-
content_block:
|
|
550
|
-
type: "tool_use",
|
|
551
|
-
id: part.id,
|
|
552
|
-
name: normalizeToolName(part.toolName),
|
|
553
|
-
input: {},
|
|
554
|
-
},
|
|
557
|
+
content_block: contentBlock,
|
|
555
558
|
},
|
|
556
559
|
});
|
|
557
560
|
break;
|
|
@@ -249,6 +249,30 @@ export declare const gpt54Pro: import("../../utils").Preset<"openai/gpt-5.4-pro"
|
|
|
249
249
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
250
250
|
providers: readonly ["openai", "azure"];
|
|
251
251
|
}>;
|
|
252
|
+
export declare const gpt55: import("../../utils").Preset<"openai/gpt-5.5", CatalogModel, {
|
|
253
|
+
name: string;
|
|
254
|
+
created: string;
|
|
255
|
+
knowledge: string;
|
|
256
|
+
context: number;
|
|
257
|
+
modalities: {
|
|
258
|
+
input: readonly ["text", "image"];
|
|
259
|
+
output: readonly ["text"];
|
|
260
|
+
};
|
|
261
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
262
|
+
providers: readonly ["openai", "azure"];
|
|
263
|
+
}>;
|
|
264
|
+
export declare const gpt55Pro: import("../../utils").Preset<"openai/gpt-5.5-pro", CatalogModel, {
|
|
265
|
+
name: string;
|
|
266
|
+
created: string;
|
|
267
|
+
knowledge: string;
|
|
268
|
+
context: number;
|
|
269
|
+
modalities: {
|
|
270
|
+
input: readonly ["text", "image"];
|
|
271
|
+
output: readonly ["text"];
|
|
272
|
+
};
|
|
273
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
274
|
+
providers: readonly ["openai", "azure"];
|
|
275
|
+
}>;
|
|
252
276
|
export declare const textEmbedding3Small: import("../../utils").Preset<"openai/text-embedding-3-small", CatalogModel, {
|
|
253
277
|
name: string;
|
|
254
278
|
created: string;
|
|
@@ -388,7 +412,18 @@ export declare const gptOss: {
|
|
|
388
412
|
}>];
|
|
389
413
|
};
|
|
390
414
|
export declare const gpt: {
|
|
391
|
-
readonly latest: readonly [import("../../utils").Preset<"openai/gpt-5.
|
|
415
|
+
readonly latest: readonly [import("../../utils").Preset<"openai/gpt-5.5", CatalogModel, {
|
|
416
|
+
name: string;
|
|
417
|
+
created: string;
|
|
418
|
+
knowledge: string;
|
|
419
|
+
context: number;
|
|
420
|
+
modalities: {
|
|
421
|
+
input: readonly ["text", "image"];
|
|
422
|
+
output: readonly ["text"];
|
|
423
|
+
};
|
|
424
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
425
|
+
providers: readonly ["openai", "azure"];
|
|
426
|
+
}>, import("../../utils").Preset<"openai/gpt-5.5-pro", CatalogModel, {
|
|
392
427
|
name: string;
|
|
393
428
|
created: string;
|
|
394
429
|
knowledge: string;
|
|
@@ -651,6 +686,28 @@ export declare const gpt: {
|
|
|
651
686
|
};
|
|
652
687
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
653
688
|
providers: readonly ["openai", "azure"];
|
|
689
|
+
}> | import("../../utils").Preset<"openai/gpt-5.5", CatalogModel, {
|
|
690
|
+
name: string;
|
|
691
|
+
created: string;
|
|
692
|
+
knowledge: string;
|
|
693
|
+
context: number;
|
|
694
|
+
modalities: {
|
|
695
|
+
input: readonly ["text", "image"];
|
|
696
|
+
output: readonly ["text"];
|
|
697
|
+
};
|
|
698
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
699
|
+
providers: readonly ["openai", "azure"];
|
|
700
|
+
}> | import("../../utils").Preset<"openai/gpt-5.5-pro", CatalogModel, {
|
|
701
|
+
name: string;
|
|
702
|
+
created: string;
|
|
703
|
+
knowledge: string;
|
|
704
|
+
context: number;
|
|
705
|
+
modalities: {
|
|
706
|
+
input: readonly ["text", "image"];
|
|
707
|
+
output: readonly ["text"];
|
|
708
|
+
};
|
|
709
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
710
|
+
providers: readonly ["openai", "azure"];
|
|
654
711
|
}>)[];
|
|
655
712
|
readonly "v5.x": readonly [import("../../utils").Preset<"openai/gpt-5", CatalogModel, {
|
|
656
713
|
name: string;
|
|
@@ -870,6 +927,28 @@ export declare const gpt: {
|
|
|
870
927
|
};
|
|
871
928
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
872
929
|
providers: readonly ["openai", "azure"];
|
|
930
|
+
}>, import("../../utils").Preset<"openai/gpt-5.5", CatalogModel, {
|
|
931
|
+
name: string;
|
|
932
|
+
created: string;
|
|
933
|
+
knowledge: string;
|
|
934
|
+
context: number;
|
|
935
|
+
modalities: {
|
|
936
|
+
input: readonly ["text", "image"];
|
|
937
|
+
output: readonly ["text"];
|
|
938
|
+
};
|
|
939
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
940
|
+
providers: readonly ["openai", "azure"];
|
|
941
|
+
}>, import("../../utils").Preset<"openai/gpt-5.5-pro", CatalogModel, {
|
|
942
|
+
name: string;
|
|
943
|
+
created: string;
|
|
944
|
+
knowledge: string;
|
|
945
|
+
context: number;
|
|
946
|
+
modalities: {
|
|
947
|
+
input: readonly ["text", "image"];
|
|
948
|
+
output: readonly ["text"];
|
|
949
|
+
};
|
|
950
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
951
|
+
providers: readonly ["openai", "azure"];
|
|
873
952
|
}>];
|
|
874
953
|
readonly v5: readonly [import("../../utils").Preset<"openai/gpt-5", CatalogModel, {
|
|
875
954
|
name: string;
|
|
@@ -1094,6 +1173,29 @@ export declare const gpt: {
|
|
|
1094
1173
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1095
1174
|
providers: readonly ["openai", "azure"];
|
|
1096
1175
|
}>];
|
|
1176
|
+
readonly "v5.5": readonly [import("../../utils").Preset<"openai/gpt-5.5", CatalogModel, {
|
|
1177
|
+
name: string;
|
|
1178
|
+
created: string;
|
|
1179
|
+
knowledge: string;
|
|
1180
|
+
context: number;
|
|
1181
|
+
modalities: {
|
|
1182
|
+
input: readonly ["text", "image"];
|
|
1183
|
+
output: readonly ["text"];
|
|
1184
|
+
};
|
|
1185
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1186
|
+
providers: readonly ["openai", "azure"];
|
|
1187
|
+
}>, import("../../utils").Preset<"openai/gpt-5.5-pro", CatalogModel, {
|
|
1188
|
+
name: string;
|
|
1189
|
+
created: string;
|
|
1190
|
+
knowledge: string;
|
|
1191
|
+
context: number;
|
|
1192
|
+
modalities: {
|
|
1193
|
+
input: readonly ["text", "image"];
|
|
1194
|
+
output: readonly ["text"];
|
|
1195
|
+
};
|
|
1196
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1197
|
+
providers: readonly ["openai", "azure"];
|
|
1198
|
+
}>];
|
|
1097
1199
|
readonly codex: readonly [import("../../utils").Preset<"openai/gpt-5-codex", CatalogModel, {
|
|
1098
1200
|
name: string;
|
|
1099
1201
|
created: string;
|
|
@@ -1237,6 +1339,17 @@ export declare const gpt: {
|
|
|
1237
1339
|
};
|
|
1238
1340
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1239
1341
|
providers: readonly ["openai", "azure"];
|
|
1342
|
+
}>, import("../../utils").Preset<"openai/gpt-5.5-pro", CatalogModel, {
|
|
1343
|
+
name: string;
|
|
1344
|
+
created: string;
|
|
1345
|
+
knowledge: string;
|
|
1346
|
+
context: number;
|
|
1347
|
+
modalities: {
|
|
1348
|
+
input: readonly ["text", "image"];
|
|
1349
|
+
output: readonly ["text"];
|
|
1350
|
+
};
|
|
1351
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1352
|
+
providers: readonly ["openai", "azure"];
|
|
1240
1353
|
}>];
|
|
1241
1354
|
};
|
|
1242
1355
|
export declare const textEmbeddings: {
|
|
@@ -194,6 +194,20 @@ export const gpt54Pro = presetFor()("openai/gpt-5.4-pro", {
|
|
|
194
194
|
knowledge: "2025-08",
|
|
195
195
|
context: 1050000,
|
|
196
196
|
});
|
|
197
|
+
export const gpt55 = presetFor()("openai/gpt-5.5", {
|
|
198
|
+
...GPT_BASE,
|
|
199
|
+
name: "GPT-5.5",
|
|
200
|
+
created: "2026-04-22",
|
|
201
|
+
knowledge: "2025-08",
|
|
202
|
+
context: 1050000,
|
|
203
|
+
});
|
|
204
|
+
export const gpt55Pro = presetFor()("openai/gpt-5.5-pro", {
|
|
205
|
+
...GPT_PRO_BASE,
|
|
206
|
+
name: "GPT-5.5 Pro",
|
|
207
|
+
created: "2026-04-24",
|
|
208
|
+
knowledge: "2025-12",
|
|
209
|
+
context: 1050000,
|
|
210
|
+
});
|
|
197
211
|
export const textEmbedding3Small = presetFor()("openai/text-embedding-3-small", {
|
|
198
212
|
...EMBEDDINGS_BASE,
|
|
199
213
|
name: "Text Embedding 3 Small",
|
|
@@ -230,6 +244,7 @@ const gptAtomic = {
|
|
|
230
244
|
"v5.2": [gpt52, gpt52Chat, gpt52Pro, gpt52Codex],
|
|
231
245
|
"v5.3": [gpt53Codex, gpt53CodexSpark, gpt53Chat],
|
|
232
246
|
"v5.4": [gpt54, gpt54Mini, gpt54Nano, gpt54Pro],
|
|
247
|
+
"v5.5": [gpt55, gpt55Pro],
|
|
233
248
|
codex: [
|
|
234
249
|
gpt5Codex,
|
|
235
250
|
gpt51Codex,
|
|
@@ -240,7 +255,7 @@ const gptAtomic = {
|
|
|
240
255
|
gpt53CodexSpark,
|
|
241
256
|
],
|
|
242
257
|
chat: [gpt51Chat, gpt52Chat, gpt53Chat],
|
|
243
|
-
pro: [gpt5Pro, gpt52Pro, gpt54Pro],
|
|
258
|
+
pro: [gpt5Pro, gpt52Pro, gpt54Pro, gpt55Pro],
|
|
244
259
|
};
|
|
245
260
|
const gptGroups = {
|
|
246
261
|
"v5.x": [
|
|
@@ -249,6 +264,7 @@ const gptGroups = {
|
|
|
249
264
|
...gptAtomic["v5.2"],
|
|
250
265
|
...gptAtomic["v5.3"],
|
|
251
266
|
...gptAtomic["v5.4"],
|
|
267
|
+
...gptAtomic["v5.5"],
|
|
252
268
|
],
|
|
253
269
|
};
|
|
254
270
|
const textEmbeddingsAtomic = {
|
|
@@ -266,7 +282,8 @@ export const gptOss = {
|
|
|
266
282
|
export const gpt = {
|
|
267
283
|
...gptAtomic,
|
|
268
284
|
...gptGroups,
|
|
269
|
-
latest
|
|
285
|
+
// 5.5 Mini/Nano not released yet; keep 5.4 small variants in `latest` until they ship.
|
|
286
|
+
latest: [gpt55, gpt55Pro, gpt54Mini, gpt54Nano],
|
|
270
287
|
all: Object.values(gptAtomic).flat(),
|
|
271
288
|
};
|
|
272
289
|
export const textEmbeddings = {
|
package/dist/models/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProviderId } from "../providers/types";
|
|
2
|
-
export declare const CANONICAL_MODEL_IDS: readonly ["anthropic/claude-opus-4.7", "anthropic/claude-opus-4.6", "anthropic/claude-sonnet-4.6", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.5", "anthropic/claude-opus-4.1", "anthropic/claude-opus-4", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-3.7", "anthropic/claude-sonnet-3.5", "anthropic/claude-haiku-3.5", "anthropic/claude-haiku-3", "openai/gpt-oss-20b", "openai/gpt-oss-120b", "openai/gpt-5", "openai/gpt-5-pro", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.2-codex", "openai/gpt-5.3-codex", "openai/gpt-5.3-codex-spark", "openai/gpt-5.3-chat", "openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.4-nano", "openai/gpt-5.4-pro", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-5-codex", "openai/gpt-5.1-codex", "openai/gpt-5.1-codex-max", "openai/gpt-5.1-codex-mini", "openai/gpt-5.1-chat", "openai/gpt-5.1", "openai/text-embedding-3-small", "openai/text-embedding-3-large", "amazon/nova-micro", "amazon/nova-lite", "amazon/nova-pro", "amazon/nova-premier", "amazon/nova-2-lite", "amazon/nova-2-multimodal-embeddings", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash-preview", "google/gemini-3.1-flash-lite-preview", "google/gemini-3.1-pro-preview", "google/gemini-embedding-2", "google/embedding-001", "google/gemma-3-1b", "google/gemma-3-4b", "google/gemma-3-12b", "google/gemma-3-27b", "google/gemma-4-e2b", "google/gemma-4-e4b", "google/gemma-4-26b-a4b", "google/gemma-4-31b", "meta/llama-3.1-8b", "meta/llama-3.1-70b", "meta/llama-3.1-405b", "meta/llama-3.2-1b", "meta/llama-3.2-3b", "meta/llama-3.2-11b", "meta/llama-3.2-90b", "meta/llama-3.3-70b", "meta/llama-4-scout", "meta/llama-4-maverick", "cohere/embed-v4.0", "cohere/embed-english-v3.0", "cohere/embed-english-light-v3.0", "cohere/embed-multilingual-v3.0", "cohere/embed-multilingual-light-v3.0", "cohere/command-a", "cohere/command-r7b", "cohere/command-a-translate", "cohere/command-a-reasoning", "cohere/command-a-vision", "cohere/command-r", "cohere/command-r-plus", "minimax/m2.5", "minimax/m2.7", "moonshot/kimi-k2.5", "moonshot/kimi-k2.6", "xai/grok-4.1-fast", "xai/grok-4.1-fast-reasoning", "xai/grok-4.2", "xai/grok-4.2-reasoning", "xai/grok-4.2-multi-agent", "deepseek/deepseek-v3.2", "voyage/voyage-2-code", "voyage/voyage-2-law", "voyage/voyage-2-finance", "voyage/voyage-3-code", "voyage/voyage-3-large", "voyage/voyage-3.5-lite", "voyage/voyage-3.5", "voyage/voyage-4-lite", "voyage/voyage-4", "voyage/voyage-4-large", "alibaba/qwen3-235b", "alibaba/qwen3-32b", "alibaba/qwen3.5-plus", "alibaba/qwen3.5-flash", "alibaba/qwen3.5-397b", "alibaba/qwen3.5-122b", "alibaba/qwen3.5-35b", "alibaba/qwen3.5-27b", "alibaba/qwen3.5-9b", "alibaba/qwen3.5-4b", "alibaba/qwen3.5-2b", "alibaba/qwen3.5-0.8b", "alibaba/qwen3.6-plus", "alibaba/qwen3.6-flash", "alibaba/qwen3.6-27b", "alibaba/qwen3.6-max-preview", "alibaba/qwen3-coder-next", "alibaba/qwen3-vl-235b", "alibaba/qwen3-embedding-0.6b", "alibaba/qwen3-embedding-4b", "alibaba/qwen3-embedding-8b", "zhipu/glm-5", "zhipu/glm-5-turbo", "zhipu/glm-5.1"];
|
|
2
|
+
export declare const CANONICAL_MODEL_IDS: readonly ["anthropic/claude-opus-4.7", "anthropic/claude-opus-4.6", "anthropic/claude-sonnet-4.6", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.5", "anthropic/claude-opus-4.1", "anthropic/claude-opus-4", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-3.7", "anthropic/claude-sonnet-3.5", "anthropic/claude-haiku-3.5", "anthropic/claude-haiku-3", "openai/gpt-oss-20b", "openai/gpt-oss-120b", "openai/gpt-5", "openai/gpt-5-pro", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.2-codex", "openai/gpt-5.3-codex", "openai/gpt-5.3-codex-spark", "openai/gpt-5.3-chat", "openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.4-nano", "openai/gpt-5.4-pro", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-5-codex", "openai/gpt-5.1-codex", "openai/gpt-5.1-codex-max", "openai/gpt-5.1-codex-mini", "openai/gpt-5.1-chat", "openai/gpt-5.1", "openai/text-embedding-3-small", "openai/text-embedding-3-large", "amazon/nova-micro", "amazon/nova-lite", "amazon/nova-pro", "amazon/nova-premier", "amazon/nova-2-lite", "amazon/nova-2-multimodal-embeddings", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash-preview", "google/gemini-3.1-flash-lite-preview", "google/gemini-3.1-pro-preview", "google/gemini-embedding-2", "google/embedding-001", "google/gemma-3-1b", "google/gemma-3-4b", "google/gemma-3-12b", "google/gemma-3-27b", "google/gemma-4-e2b", "google/gemma-4-e4b", "google/gemma-4-26b-a4b", "google/gemma-4-31b", "meta/llama-3.1-8b", "meta/llama-3.1-70b", "meta/llama-3.1-405b", "meta/llama-3.2-1b", "meta/llama-3.2-3b", "meta/llama-3.2-11b", "meta/llama-3.2-90b", "meta/llama-3.3-70b", "meta/llama-4-scout", "meta/llama-4-maverick", "cohere/embed-v4.0", "cohere/embed-english-v3.0", "cohere/embed-english-light-v3.0", "cohere/embed-multilingual-v3.0", "cohere/embed-multilingual-light-v3.0", "cohere/command-a", "cohere/command-r7b", "cohere/command-a-translate", "cohere/command-a-reasoning", "cohere/command-a-vision", "cohere/command-r", "cohere/command-r-plus", "minimax/m2.5", "minimax/m2.7", "moonshot/kimi-k2.5", "moonshot/kimi-k2.6", "xai/grok-4.1-fast", "xai/grok-4.1-fast-reasoning", "xai/grok-4.2", "xai/grok-4.2-reasoning", "xai/grok-4.2-multi-agent", "deepseek/deepseek-v3.2", "voyage/voyage-2-code", "voyage/voyage-2-law", "voyage/voyage-2-finance", "voyage/voyage-3-code", "voyage/voyage-3-large", "voyage/voyage-3.5-lite", "voyage/voyage-3.5", "voyage/voyage-4-lite", "voyage/voyage-4", "voyage/voyage-4-large", "alibaba/qwen3-235b", "alibaba/qwen3-32b", "alibaba/qwen3.5-plus", "alibaba/qwen3.5-flash", "alibaba/qwen3.5-397b", "alibaba/qwen3.5-122b", "alibaba/qwen3.5-35b", "alibaba/qwen3.5-27b", "alibaba/qwen3.5-9b", "alibaba/qwen3.5-4b", "alibaba/qwen3.5-2b", "alibaba/qwen3.5-0.8b", "alibaba/qwen3.6-plus", "alibaba/qwen3.6-flash", "alibaba/qwen3.6-27b", "alibaba/qwen3.6-max-preview", "alibaba/qwen3-coder-next", "alibaba/qwen3-vl-235b", "alibaba/qwen3-embedding-0.6b", "alibaba/qwen3-embedding-4b", "alibaba/qwen3-embedding-8b", "zhipu/glm-5", "zhipu/glm-5-turbo", "zhipu/glm-5.1"];
|
|
3
3
|
export type CanonicalModelId = (typeof CANONICAL_MODEL_IDS)[number];
|
|
4
4
|
export type ModelId = CanonicalModelId | (string & {});
|
|
5
5
|
export type CatalogModel = {
|
package/dist/models/types.js
CHANGED
package/dist/utils/preset.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebo-ai/gateway",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "AI gateway as a framework. For full control over models, routing & lifecycle. OpenAI /chat/completions, OpenResponses /responses & Anthropic /messages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"@ai-sdk/provider": "^3.0.8",
|
|
256
256
|
"ai": "^6.0.168",
|
|
257
257
|
"lru-cache": "^11.3.5",
|
|
258
|
-
"uuid": "^
|
|
258
|
+
"uuid": "^14.0.0",
|
|
259
259
|
"zod": "^4.3.6"
|
|
260
260
|
},
|
|
261
261
|
"devDependencies": {
|
|
@@ -272,37 +272,37 @@
|
|
|
272
272
|
"@ai-sdk/openai": "^3.0.53",
|
|
273
273
|
"@ai-sdk/togetherai": "^2.0.45",
|
|
274
274
|
"@ai-sdk/xai": "^3.0.83",
|
|
275
|
-
"@anthropic-ai/sdk": "^0.
|
|
276
|
-
"@aws-sdk/credential-providers": "^3.
|
|
275
|
+
"@anthropic-ai/sdk": "^0.91.1",
|
|
276
|
+
"@aws-sdk/credential-providers": "^3.1037.0",
|
|
277
277
|
"@langfuse/otel": "^5.2.0",
|
|
278
|
-
"@libsql/client": "^0.17.
|
|
278
|
+
"@libsql/client": "^0.17.3",
|
|
279
279
|
"@mjackson/node-fetch-server": "^0.7.0",
|
|
280
280
|
"@opentelemetry/api": "^1.9.1",
|
|
281
281
|
"@opentelemetry/context-async-hooks": "^2.7.0",
|
|
282
282
|
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
283
|
-
"@tanstack/react-router": "^1.168.
|
|
284
|
-
"@tanstack/react-start": "^1.167.
|
|
283
|
+
"@tanstack/react-router": "^1.168.24",
|
|
284
|
+
"@tanstack/react-start": "^1.167.49",
|
|
285
285
|
"@types/better-sqlite3": "^7.6.13",
|
|
286
|
-
"@types/bun": "1.3.
|
|
286
|
+
"@types/bun": "1.3.13",
|
|
287
287
|
"@types/pg": "^8.20.0",
|
|
288
288
|
"@types/react": "^19.2.14",
|
|
289
289
|
"@types/react-dom": "^19.2.3",
|
|
290
290
|
"@types/uuid": "^11.0.0",
|
|
291
291
|
"better-sqlite3": "^12.9.0",
|
|
292
292
|
"elysia": "^1.4.28",
|
|
293
|
-
"hono": "^4.12.
|
|
293
|
+
"hono": "^4.12.15",
|
|
294
294
|
"lefthook": "^2.1.6",
|
|
295
|
-
"mysql2": "^3.22.
|
|
295
|
+
"mysql2": "^3.22.3",
|
|
296
296
|
"next": "^16.2.4",
|
|
297
297
|
"openai": "^6.34.0",
|
|
298
|
-
"oxfmt": "^0.
|
|
298
|
+
"oxfmt": "^0.46.0",
|
|
299
299
|
"oxlint": "^1.61.0",
|
|
300
|
-
"oxlint-tsgolint": "^0.
|
|
300
|
+
"oxlint-tsgolint": "^0.22.0",
|
|
301
301
|
"pg": "^8.20.0",
|
|
302
302
|
"pino": "^10.3.1",
|
|
303
303
|
"postgres": "^3.4.9",
|
|
304
304
|
"typescript": "^6.0.3",
|
|
305
|
-
"vite": "^
|
|
305
|
+
"vite": "^8.0.10",
|
|
306
306
|
"vite-tsconfig-paths": "^6.1.1",
|
|
307
307
|
"voyage-ai-provider": "^3.0.0",
|
|
308
308
|
"zhipu-ai-provider": "^0.3.0"
|