@hebo-ai/gateway 0.9.1 → 0.9.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 +82 -4
- package/package.json +31 -31
- package/dist/config.d.ts +0 -2
- package/dist/config.js +0 -111
- package/dist/endpoints/chat-completions/converters.d.ts +0 -26
- package/dist/endpoints/chat-completions/converters.js +0 -524
- package/dist/endpoints/chat-completions/handler.d.ts +0 -2
- package/dist/endpoints/chat-completions/handler.js +0 -149
- package/dist/endpoints/chat-completions/index.d.ts +0 -4
- package/dist/endpoints/chat-completions/index.js +0 -4
- package/dist/endpoints/chat-completions/otel.d.ts +0 -5
- package/dist/endpoints/chat-completions/otel.js +0 -175
- package/dist/endpoints/chat-completions/schema.d.ts +0 -1170
- package/dist/endpoints/chat-completions/schema.js +0 -252
- package/dist/endpoints/conversations/converters.d.ts +0 -8
- package/dist/endpoints/conversations/converters.js +0 -29
- package/dist/endpoints/conversations/handler.d.ts +0 -2
- package/dist/endpoints/conversations/handler.js +0 -276
- package/dist/endpoints/conversations/index.d.ts +0 -3
- package/dist/endpoints/conversations/index.js +0 -3
- package/dist/endpoints/conversations/schema.d.ts +0 -1511
- package/dist/endpoints/conversations/schema.js +0 -74
- package/dist/endpoints/conversations/storage/dialects/greptime.d.ts +0 -10
- package/dist/endpoints/conversations/storage/dialects/greptime.js +0 -87
- package/dist/endpoints/conversations/storage/dialects/mysql.d.ts +0 -12
- package/dist/endpoints/conversations/storage/dialects/mysql.js +0 -118
- package/dist/endpoints/conversations/storage/dialects/postgres.d.ts +0 -16
- package/dist/endpoints/conversations/storage/dialects/postgres.js +0 -185
- package/dist/endpoints/conversations/storage/dialects/sqlite.d.ts +0 -11
- package/dist/endpoints/conversations/storage/dialects/sqlite.js +0 -176
- package/dist/endpoints/conversations/storage/dialects/types.d.ts +0 -42
- package/dist/endpoints/conversations/storage/dialects/types.js +0 -0
- package/dist/endpoints/conversations/storage/dialects/utils.d.ts +0 -25
- package/dist/endpoints/conversations/storage/dialects/utils.js +0 -80
- package/dist/endpoints/conversations/storage/memory.d.ts +0 -25
- package/dist/endpoints/conversations/storage/memory.js +0 -200
- package/dist/endpoints/conversations/storage/sql.d.ts +0 -33
- package/dist/endpoints/conversations/storage/sql.js +0 -278
- package/dist/endpoints/conversations/storage/types.d.ts +0 -39
- package/dist/endpoints/conversations/storage/types.js +0 -0
- package/dist/endpoints/embeddings/converters.d.ts +0 -10
- package/dist/endpoints/embeddings/converters.js +0 -31
- package/dist/endpoints/embeddings/handler.d.ts +0 -2
- package/dist/endpoints/embeddings/handler.js +0 -104
- package/dist/endpoints/embeddings/index.d.ts +0 -4
- package/dist/endpoints/embeddings/index.js +0 -4
- package/dist/endpoints/embeddings/otel.d.ts +0 -5
- package/dist/endpoints/embeddings/otel.js +0 -29
- package/dist/endpoints/embeddings/schema.d.ts +0 -44
- package/dist/endpoints/embeddings/schema.js +0 -29
- package/dist/endpoints/models/converters.d.ts +0 -6
- package/dist/endpoints/models/converters.js +0 -42
- package/dist/endpoints/models/handler.d.ts +0 -2
- package/dist/endpoints/models/handler.js +0 -29
- package/dist/endpoints/models/index.d.ts +0 -3
- package/dist/endpoints/models/index.js +0 -3
- package/dist/endpoints/models/schema.d.ts +0 -42
- package/dist/endpoints/models/schema.js +0 -31
- package/dist/endpoints/responses/converters.d.ts +0 -17
- package/dist/endpoints/responses/converters.js +0 -1034
- package/dist/endpoints/responses/handler.d.ts +0 -2
- package/dist/endpoints/responses/handler.js +0 -137
- package/dist/endpoints/responses/index.d.ts +0 -4
- package/dist/endpoints/responses/index.js +0 -4
- package/dist/endpoints/responses/otel.d.ts +0 -6
- package/dist/endpoints/responses/otel.js +0 -221
- package/dist/endpoints/responses/schema.d.ts +0 -2109
- package/dist/endpoints/responses/schema.js +0 -314
- package/dist/endpoints/shared/converters.d.ts +0 -56
- package/dist/endpoints/shared/converters.js +0 -179
- package/dist/endpoints/shared/schema.d.ts +0 -70
- package/dist/endpoints/shared/schema.js +0 -46
- package/dist/errors/ai-sdk.d.ts +0 -2
- package/dist/errors/ai-sdk.js +0 -52
- package/dist/errors/gateway.d.ts +0 -5
- package/dist/errors/gateway.js +0 -13
- package/dist/errors/openai.d.ts +0 -15
- package/dist/errors/openai.js +0 -40
- package/dist/errors/utils.d.ts +0 -22
- package/dist/errors/utils.js +0 -44
- package/dist/gateway.d.ts +0 -11
- package/dist/gateway.js +0 -44
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -10
- package/dist/lifecycle.d.ts +0 -3
- package/dist/lifecycle.js +0 -113
- package/dist/logger/default.d.ts +0 -4
- package/dist/logger/default.js +0 -81
- package/dist/logger/index.d.ts +0 -11
- package/dist/logger/index.js +0 -25
- package/dist/middleware/common.d.ts +0 -12
- package/dist/middleware/common.js +0 -146
- package/dist/middleware/debug.d.ts +0 -3
- package/dist/middleware/debug.js +0 -27
- package/dist/middleware/matcher.d.ts +0 -28
- package/dist/middleware/matcher.js +0 -118
- package/dist/middleware/utils.d.ts +0 -2
- package/dist/middleware/utils.js +0 -24
- package/dist/models/amazon/index.d.ts +0 -2
- package/dist/models/amazon/index.js +0 -2
- package/dist/models/amazon/middleware.d.ts +0 -3
- package/dist/models/amazon/middleware.js +0 -68
- package/dist/models/amazon/presets.d.ts +0 -345
- package/dist/models/amazon/presets.js +0 -80
- package/dist/models/anthropic/index.d.ts +0 -2
- package/dist/models/anthropic/index.js +0 -2
- package/dist/models/anthropic/middleware.d.ts +0 -5
- package/dist/models/anthropic/middleware.js +0 -127
- package/dist/models/anthropic/presets.d.ts +0 -711
- package/dist/models/anthropic/presets.js +0 -140
- package/dist/models/catalog.d.ts +0 -4
- package/dist/models/catalog.js +0 -8
- package/dist/models/cohere/index.d.ts +0 -2
- package/dist/models/cohere/index.js +0 -2
- package/dist/models/cohere/middleware.d.ts +0 -3
- package/dist/models/cohere/middleware.js +0 -62
- package/dist/models/cohere/presets.d.ts +0 -411
- package/dist/models/cohere/presets.js +0 -134
- package/dist/models/google/index.d.ts +0 -2
- package/dist/models/google/index.js +0 -2
- package/dist/models/google/middleware.d.ts +0 -8
- package/dist/models/google/middleware.js +0 -117
- package/dist/models/google/presets.d.ts +0 -403
- package/dist/models/google/presets.js +0 -88
- package/dist/models/meta/index.d.ts +0 -1
- package/dist/models/meta/index.js +0 -1
- package/dist/models/meta/presets.d.ts +0 -483
- package/dist/models/meta/presets.js +0 -105
- package/dist/models/openai/index.d.ts +0 -2
- package/dist/models/openai/index.js +0 -2
- package/dist/models/openai/middleware.d.ts +0 -4
- package/dist/models/openai/middleware.js +0 -88
- package/dist/models/openai/presets.d.ts +0 -1319
- package/dist/models/openai/presets.js +0 -277
- package/dist/models/types.d.ts +0 -20
- package/dist/models/types.js +0 -92
- package/dist/models/voyage/index.d.ts +0 -2
- package/dist/models/voyage/index.js +0 -2
- package/dist/models/voyage/middleware.d.ts +0 -2
- package/dist/models/voyage/middleware.js +0 -19
- package/dist/models/voyage/presets.d.ts +0 -436
- package/dist/models/voyage/presets.js +0 -85
- package/dist/providers/anthropic/canonical.d.ts +0 -3
- package/dist/providers/anthropic/canonical.js +0 -9
- package/dist/providers/anthropic/index.d.ts +0 -1
- package/dist/providers/anthropic/index.js +0 -1
- package/dist/providers/bedrock/canonical.d.ts +0 -17
- package/dist/providers/bedrock/canonical.js +0 -61
- package/dist/providers/bedrock/index.d.ts +0 -2
- package/dist/providers/bedrock/index.js +0 -2
- package/dist/providers/bedrock/middleware.d.ts +0 -5
- package/dist/providers/bedrock/middleware.js +0 -137
- package/dist/providers/cohere/canonical.d.ts +0 -3
- package/dist/providers/cohere/canonical.js +0 -17
- package/dist/providers/cohere/index.d.ts +0 -1
- package/dist/providers/cohere/index.js +0 -1
- package/dist/providers/groq/canonical.d.ts +0 -3
- package/dist/providers/groq/canonical.js +0 -12
- package/dist/providers/groq/index.d.ts +0 -2
- package/dist/providers/groq/index.js +0 -2
- package/dist/providers/groq/middleware.d.ts +0 -2
- package/dist/providers/groq/middleware.js +0 -31
- package/dist/providers/openai/canonical.d.ts +0 -3
- package/dist/providers/openai/canonical.js +0 -8
- package/dist/providers/openai/index.d.ts +0 -1
- package/dist/providers/openai/index.js +0 -1
- package/dist/providers/registry.d.ts +0 -24
- package/dist/providers/registry.js +0 -103
- package/dist/providers/types.d.ts +0 -7
- package/dist/providers/types.js +0 -11
- package/dist/providers/vertex/canonical.d.ts +0 -3
- package/dist/providers/vertex/canonical.js +0 -8
- package/dist/providers/vertex/index.d.ts +0 -2
- package/dist/providers/vertex/index.js +0 -2
- package/dist/providers/vertex/middleware.d.ts +0 -2
- package/dist/providers/vertex/middleware.js +0 -47
- package/dist/providers/voyage/canonical.d.ts +0 -3
- package/dist/providers/voyage/canonical.js +0 -7
- package/dist/providers/voyage/index.d.ts +0 -1
- package/dist/providers/voyage/index.js +0 -1
- package/dist/telemetry/ai-sdk.d.ts +0 -2
- package/dist/telemetry/ai-sdk.js +0 -31
- package/dist/telemetry/baggage.d.ts +0 -1
- package/dist/telemetry/baggage.js +0 -24
- package/dist/telemetry/fetch.d.ts +0 -2
- package/dist/telemetry/fetch.js +0 -49
- package/dist/telemetry/gen-ai.d.ts +0 -6
- package/dist/telemetry/gen-ai.js +0 -78
- package/dist/telemetry/http.d.ts +0 -3
- package/dist/telemetry/http.js +0 -54
- package/dist/telemetry/index.d.ts +0 -1
- package/dist/telemetry/index.js +0 -1
- package/dist/telemetry/memory.d.ts +0 -2
- package/dist/telemetry/memory.js +0 -43
- package/dist/telemetry/span.d.ts +0 -13
- package/dist/telemetry/span.js +0 -60
- package/dist/types.d.ts +0 -216
- package/dist/types.js +0 -2
- package/dist/utils/env.d.ts +0 -2
- package/dist/utils/env.js +0 -7
- package/dist/utils/headers.d.ts +0 -4
- package/dist/utils/headers.js +0 -22
- package/dist/utils/preset.d.ts +0 -10
- package/dist/utils/preset.js +0 -41
- package/dist/utils/request.d.ts +0 -2
- package/dist/utils/request.js +0 -43
- package/dist/utils/response.d.ts +0 -6
- package/dist/utils/response.js +0 -55
- package/dist/utils/stream.d.ts +0 -9
- package/dist/utils/stream.js +0 -100
- package/dist/utils/url.d.ts +0 -4
- package/dist/utils/url.js +0 -21
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { presetFor } from "../../utils/preset";
|
|
2
|
-
const CLAUDE_BASE = {
|
|
3
|
-
modalities: {
|
|
4
|
-
input: ["text", "image", "file"],
|
|
5
|
-
output: ["text"],
|
|
6
|
-
},
|
|
7
|
-
capabilities: ["attachments", "tool_call", "structured_output", "temperature"],
|
|
8
|
-
context: 200000,
|
|
9
|
-
providers: [
|
|
10
|
-
"anthropic",
|
|
11
|
-
"bedrock",
|
|
12
|
-
"vertex",
|
|
13
|
-
"azure",
|
|
14
|
-
],
|
|
15
|
-
};
|
|
16
|
-
const CLAUDE_PDF_MODALITIES = {
|
|
17
|
-
modalities: {
|
|
18
|
-
input: ["text", "image", "pdf", "file"],
|
|
19
|
-
output: ["text"],
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
export const claudeHaiku45 = presetFor()("anthropic/claude-haiku-4.5", {
|
|
23
|
-
...CLAUDE_BASE,
|
|
24
|
-
...CLAUDE_PDF_MODALITIES,
|
|
25
|
-
name: "Claude Haiku 4.5",
|
|
26
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
27
|
-
created: "2025-10-01",
|
|
28
|
-
knowledge: "2025-07",
|
|
29
|
-
});
|
|
30
|
-
export const claudeHaiku35 = presetFor()("anthropic/claude-haiku-3.5", {
|
|
31
|
-
...CLAUDE_BASE,
|
|
32
|
-
...CLAUDE_PDF_MODALITIES,
|
|
33
|
-
name: "Claude Haiku 3.5",
|
|
34
|
-
created: "2024-10-22",
|
|
35
|
-
knowledge: "2024-07",
|
|
36
|
-
});
|
|
37
|
-
export const claudeHaiku3 = presetFor()("anthropic/claude-haiku-3", {
|
|
38
|
-
...CLAUDE_BASE,
|
|
39
|
-
name: "Claude Haiku 3",
|
|
40
|
-
created: "2024-03-07",
|
|
41
|
-
knowledge: "2023-08",
|
|
42
|
-
});
|
|
43
|
-
export const claudeSonnet45 = presetFor()("anthropic/claude-sonnet-4.5", {
|
|
44
|
-
...CLAUDE_BASE,
|
|
45
|
-
...CLAUDE_PDF_MODALITIES,
|
|
46
|
-
name: "Claude Sonnet 4.5",
|
|
47
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
48
|
-
created: "2025-09-29",
|
|
49
|
-
knowledge: "2025-07",
|
|
50
|
-
});
|
|
51
|
-
export const claudeSonnet46 = presetFor()("anthropic/claude-sonnet-4.6", {
|
|
52
|
-
...CLAUDE_BASE,
|
|
53
|
-
...CLAUDE_PDF_MODALITIES,
|
|
54
|
-
name: "Claude Sonnet 4.6",
|
|
55
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
56
|
-
created: "2026-02-17",
|
|
57
|
-
knowledge: "2025-08",
|
|
58
|
-
});
|
|
59
|
-
export const claudeSonnet4 = presetFor()("anthropic/claude-sonnet-4", {
|
|
60
|
-
...CLAUDE_BASE,
|
|
61
|
-
...CLAUDE_PDF_MODALITIES,
|
|
62
|
-
name: "Claude Sonnet 4",
|
|
63
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
64
|
-
created: "2025-05-14",
|
|
65
|
-
knowledge: "2025-03",
|
|
66
|
-
});
|
|
67
|
-
export const claudeSonnet37 = presetFor()("anthropic/claude-sonnet-3.7", {
|
|
68
|
-
...CLAUDE_BASE,
|
|
69
|
-
...CLAUDE_PDF_MODALITIES,
|
|
70
|
-
name: "Claude Sonnet 3.7",
|
|
71
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
72
|
-
created: "2025-02-19",
|
|
73
|
-
knowledge: "2024-10",
|
|
74
|
-
});
|
|
75
|
-
export const claudeSonnet35 = presetFor()("anthropic/claude-sonnet-3.5", {
|
|
76
|
-
...CLAUDE_BASE,
|
|
77
|
-
...CLAUDE_PDF_MODALITIES,
|
|
78
|
-
name: "Claude Sonnet 3.5",
|
|
79
|
-
created: "2024-10-22",
|
|
80
|
-
knowledge: "2024-04",
|
|
81
|
-
});
|
|
82
|
-
export const claudeOpus45 = presetFor()("anthropic/claude-opus-4.5", {
|
|
83
|
-
...CLAUDE_BASE,
|
|
84
|
-
...CLAUDE_PDF_MODALITIES,
|
|
85
|
-
name: "Claude Opus 4.5",
|
|
86
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
87
|
-
created: "2025-11-01",
|
|
88
|
-
knowledge: "2025-05",
|
|
89
|
-
});
|
|
90
|
-
export const claudeOpus46 = presetFor()("anthropic/claude-opus-4.6", {
|
|
91
|
-
...CLAUDE_BASE,
|
|
92
|
-
...CLAUDE_PDF_MODALITIES,
|
|
93
|
-
name: "Claude Opus 4.6",
|
|
94
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
95
|
-
created: "2026-02-05",
|
|
96
|
-
knowledge: "2025-05",
|
|
97
|
-
});
|
|
98
|
-
export const claudeOpus41 = presetFor()("anthropic/claude-opus-4.1", {
|
|
99
|
-
...CLAUDE_BASE,
|
|
100
|
-
...CLAUDE_PDF_MODALITIES,
|
|
101
|
-
name: "Claude Opus 4.1",
|
|
102
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
103
|
-
created: "2025-08-05",
|
|
104
|
-
knowledge: "2025-03",
|
|
105
|
-
});
|
|
106
|
-
export const claudeOpus4 = presetFor()("anthropic/claude-opus-4", {
|
|
107
|
-
...CLAUDE_BASE,
|
|
108
|
-
...CLAUDE_PDF_MODALITIES,
|
|
109
|
-
name: "Claude Opus 4",
|
|
110
|
-
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
111
|
-
created: "2025-05-14",
|
|
112
|
-
knowledge: "2025-03",
|
|
113
|
-
});
|
|
114
|
-
const claudeAtomic = {
|
|
115
|
-
"v4.6": [claudeSonnet46, claudeOpus46],
|
|
116
|
-
"v4.5": [claudeHaiku45, claudeSonnet45, claudeOpus45],
|
|
117
|
-
"v4.1": [claudeOpus41],
|
|
118
|
-
v4: [claudeSonnet4, claudeOpus4],
|
|
119
|
-
"v3.7": [claudeSonnet37],
|
|
120
|
-
"v3.5": [claudeSonnet35, claudeHaiku35],
|
|
121
|
-
v3: [claudeHaiku3],
|
|
122
|
-
haiku: [claudeHaiku45, claudeHaiku35, claudeHaiku3],
|
|
123
|
-
sonnet: [claudeSonnet46, claudeSonnet45, claudeSonnet4, claudeSonnet37, claudeSonnet35],
|
|
124
|
-
opus: [claudeOpus46, claudeOpus45, claudeOpus41, claudeOpus4],
|
|
125
|
-
};
|
|
126
|
-
const claudeGroups = {
|
|
127
|
-
"v4.x": [
|
|
128
|
-
...claudeAtomic["v4.6"],
|
|
129
|
-
...claudeAtomic["v4.5"],
|
|
130
|
-
...claudeAtomic["v4.1"],
|
|
131
|
-
...claudeAtomic["v4"],
|
|
132
|
-
],
|
|
133
|
-
"v3.x": [...claudeAtomic["v3.7"], ...claudeAtomic["v3.5"], ...claudeAtomic["v3"]],
|
|
134
|
-
};
|
|
135
|
-
export const claude = {
|
|
136
|
-
...claudeAtomic,
|
|
137
|
-
...claudeGroups,
|
|
138
|
-
latest: [...claudeAtomic["v4.6"]],
|
|
139
|
-
all: Object.values(claudeAtomic).flat(),
|
|
140
|
-
};
|
package/dist/models/catalog.d.ts
DELETED
package/dist/models/catalog.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { modelMiddlewareMatcher } from "../../middleware/matcher";
|
|
2
|
-
import { calculateReasoningBudgetFromEffort } from "../../middleware/utils";
|
|
3
|
-
// Convert `dimensions` (OpenAI) to `outputDimension` (Cohere)
|
|
4
|
-
export const cohereDimensionsMiddleware = {
|
|
5
|
-
specificationVersion: "v3",
|
|
6
|
-
// oxlint-disable-next-line require-await
|
|
7
|
-
transformParams: async ({ params, model }) => {
|
|
8
|
-
const unknown = params.providerOptions?.["unknown"];
|
|
9
|
-
if (!unknown)
|
|
10
|
-
return params;
|
|
11
|
-
const modelId = model.modelId;
|
|
12
|
-
if (modelId.includes("cohere/embed-english-light") ||
|
|
13
|
-
modelId.includes("cohere/embed-multilingual-light")) {
|
|
14
|
-
delete unknown["dimensions"];
|
|
15
|
-
return params;
|
|
16
|
-
}
|
|
17
|
-
const dimensions = unknown["dimensions"];
|
|
18
|
-
if (!dimensions)
|
|
19
|
-
return params;
|
|
20
|
-
const target = (params.providerOptions["cohere"] ??= {});
|
|
21
|
-
// @ts-expect-error AI SDK does the value checking for us
|
|
22
|
-
target.outputDimension = dimensions;
|
|
23
|
-
delete unknown["dimensions"];
|
|
24
|
-
return params;
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
const COHERE_MAX_OUTPUT_TOKENS = 32000;
|
|
28
|
-
export const cohereReasoningMiddleware = {
|
|
29
|
-
specificationVersion: "v3",
|
|
30
|
-
// oxlint-disable-next-line require-await
|
|
31
|
-
transformParams: async ({ params }) => {
|
|
32
|
-
const unknown = params.providerOptions?.["unknown"];
|
|
33
|
-
if (!unknown)
|
|
34
|
-
return params;
|
|
35
|
-
const reasoning = unknown["reasoning"];
|
|
36
|
-
if (!reasoning)
|
|
37
|
-
return params;
|
|
38
|
-
const target = (params.providerOptions["cohere"] ??= {});
|
|
39
|
-
if (!reasoning.enabled) {
|
|
40
|
-
target.thinking = { type: "disabled" };
|
|
41
|
-
}
|
|
42
|
-
else if (reasoning.max_tokens) {
|
|
43
|
-
target.thinking = { type: "enabled", tokenBudget: reasoning.max_tokens };
|
|
44
|
-
}
|
|
45
|
-
else if (reasoning.effort) {
|
|
46
|
-
// FUTURE: warn that reasoning.max_tokens was computed
|
|
47
|
-
target.thinking = {
|
|
48
|
-
type: "enabled",
|
|
49
|
-
tokenBudget: calculateReasoningBudgetFromEffort(reasoning.effort, params.maxOutputTokens ?? COHERE_MAX_OUTPUT_TOKENS, 1024),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
target.thinking = { type: "enabled" };
|
|
54
|
-
}
|
|
55
|
-
delete unknown["reasoning"];
|
|
56
|
-
return params;
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
modelMiddlewareMatcher.useForModel("cohere/embed-*", { embedding: [cohereDimensionsMiddleware] });
|
|
60
|
-
modelMiddlewareMatcher.useForModel("cohere/command-a-reasoning", {
|
|
61
|
-
language: [cohereReasoningMiddleware],
|
|
62
|
-
});
|
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
import type { CatalogModel } from "../types";
|
|
2
|
-
export declare const commandA: import("../../utils/preset").Preset<"cohere/command-a", CatalogModel, {
|
|
3
|
-
name: string;
|
|
4
|
-
created: string;
|
|
5
|
-
context: number;
|
|
6
|
-
modalities: {
|
|
7
|
-
input: readonly ["text"];
|
|
8
|
-
output: readonly ["text"];
|
|
9
|
-
};
|
|
10
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
11
|
-
providers: readonly ["cohere", "azure"];
|
|
12
|
-
knowledge: string;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const commandAReasoning: import("../../utils/preset").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
15
|
-
name: string;
|
|
16
|
-
created: string;
|
|
17
|
-
context: number;
|
|
18
|
-
modalities: {
|
|
19
|
-
input: readonly ["text"];
|
|
20
|
-
output: readonly ["text"];
|
|
21
|
-
};
|
|
22
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
23
|
-
providers: readonly ["cohere", "azure"];
|
|
24
|
-
knowledge: string;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const commandATranslate: import("../../utils/preset").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
27
|
-
name: string;
|
|
28
|
-
created: string;
|
|
29
|
-
context: number;
|
|
30
|
-
modalities: {
|
|
31
|
-
input: readonly ["text"];
|
|
32
|
-
output: readonly ["text"];
|
|
33
|
-
};
|
|
34
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
35
|
-
providers: readonly ["cohere", "azure"];
|
|
36
|
-
knowledge: string;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const commandAVision: import("../../utils/preset").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
39
|
-
name: string;
|
|
40
|
-
created: string;
|
|
41
|
-
context: number;
|
|
42
|
-
modalities: {
|
|
43
|
-
input: readonly ["text", "image"];
|
|
44
|
-
output: readonly ["text"];
|
|
45
|
-
};
|
|
46
|
-
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
47
|
-
providers: readonly ["cohere", "azure"];
|
|
48
|
-
knowledge: string;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const commandR: import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
|
|
51
|
-
name: string;
|
|
52
|
-
created: string;
|
|
53
|
-
context: number;
|
|
54
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
55
|
-
modalities: {
|
|
56
|
-
input: readonly ["text"];
|
|
57
|
-
output: readonly ["text"];
|
|
58
|
-
};
|
|
59
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
60
|
-
knowledge: string;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const commandRPlus: import("../../utils/preset").Preset<"cohere/command-r-plus", CatalogModel, {
|
|
63
|
-
name: string;
|
|
64
|
-
created: string;
|
|
65
|
-
context: number;
|
|
66
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
67
|
-
modalities: {
|
|
68
|
-
input: readonly ["text"];
|
|
69
|
-
output: readonly ["text"];
|
|
70
|
-
};
|
|
71
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
72
|
-
knowledge: string;
|
|
73
|
-
}>;
|
|
74
|
-
export declare const commandR7b: import("../../utils/preset").Preset<"cohere/command-r7b", CatalogModel, {
|
|
75
|
-
name: string;
|
|
76
|
-
created: string;
|
|
77
|
-
context: number;
|
|
78
|
-
modalities: {
|
|
79
|
-
input: readonly ["text"];
|
|
80
|
-
output: readonly ["text"];
|
|
81
|
-
};
|
|
82
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
83
|
-
providers: readonly ["cohere", "azure"];
|
|
84
|
-
knowledge: string;
|
|
85
|
-
}>;
|
|
86
|
-
export declare const embed4: import("../../utils/preset").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
87
|
-
name: string;
|
|
88
|
-
created: string;
|
|
89
|
-
context: number;
|
|
90
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
91
|
-
modalities: {
|
|
92
|
-
input: readonly ["text", "image", "pdf"];
|
|
93
|
-
output: readonly ["embedding"];
|
|
94
|
-
};
|
|
95
|
-
}>;
|
|
96
|
-
export declare const embedEnglishV3: import("../../utils/preset").Preset<"cohere/embed-english-v3.0", CatalogModel, {
|
|
97
|
-
name: string;
|
|
98
|
-
created: string;
|
|
99
|
-
context: number;
|
|
100
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
101
|
-
modalities: {
|
|
102
|
-
input: readonly ["text", "image"];
|
|
103
|
-
output: readonly ["embedding"];
|
|
104
|
-
};
|
|
105
|
-
}>;
|
|
106
|
-
export declare const embedEnglishLightV3: import("../../utils/preset").Preset<"cohere/embed-english-light-v3.0", CatalogModel, {
|
|
107
|
-
name: string;
|
|
108
|
-
created: string;
|
|
109
|
-
context: number;
|
|
110
|
-
providers: "cohere"[];
|
|
111
|
-
modalities: {
|
|
112
|
-
input: readonly ["text", "image"];
|
|
113
|
-
output: readonly ["embedding"];
|
|
114
|
-
};
|
|
115
|
-
}>;
|
|
116
|
-
export declare const embedMultilingualV3: import("../../utils/preset").Preset<"cohere/embed-multilingual-v3.0", CatalogModel, {
|
|
117
|
-
name: string;
|
|
118
|
-
created: string;
|
|
119
|
-
context: number;
|
|
120
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
121
|
-
modalities: {
|
|
122
|
-
input: readonly ["text", "image"];
|
|
123
|
-
output: readonly ["embedding"];
|
|
124
|
-
};
|
|
125
|
-
}>;
|
|
126
|
-
export declare const embedMultilingualLightV3: import("../../utils/preset").Preset<"cohere/embed-multilingual-light-v3.0", CatalogModel, {
|
|
127
|
-
name: string;
|
|
128
|
-
created: string;
|
|
129
|
-
context: number;
|
|
130
|
-
providers: "cohere"[];
|
|
131
|
-
modalities: {
|
|
132
|
-
input: readonly ["text", "image"];
|
|
133
|
-
output: readonly ["embedding"];
|
|
134
|
-
};
|
|
135
|
-
}>;
|
|
136
|
-
export declare const command: {
|
|
137
|
-
readonly latest: readonly [import("../../utils/preset").Preset<"cohere/command-a", CatalogModel, {
|
|
138
|
-
name: string;
|
|
139
|
-
created: string;
|
|
140
|
-
context: number;
|
|
141
|
-
modalities: {
|
|
142
|
-
input: readonly ["text"];
|
|
143
|
-
output: readonly ["text"];
|
|
144
|
-
};
|
|
145
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
146
|
-
providers: readonly ["cohere", "azure"];
|
|
147
|
-
knowledge: string;
|
|
148
|
-
}>];
|
|
149
|
-
readonly all: (import("../../utils/preset").Preset<"cohere/command-a", CatalogModel, {
|
|
150
|
-
name: string;
|
|
151
|
-
created: string;
|
|
152
|
-
context: number;
|
|
153
|
-
modalities: {
|
|
154
|
-
input: readonly ["text"];
|
|
155
|
-
output: readonly ["text"];
|
|
156
|
-
};
|
|
157
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
158
|
-
providers: readonly ["cohere", "azure"];
|
|
159
|
-
knowledge: string;
|
|
160
|
-
}> | import("../../utils/preset").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
161
|
-
name: string;
|
|
162
|
-
created: string;
|
|
163
|
-
context: number;
|
|
164
|
-
modalities: {
|
|
165
|
-
input: readonly ["text"];
|
|
166
|
-
output: readonly ["text"];
|
|
167
|
-
};
|
|
168
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
169
|
-
providers: readonly ["cohere", "azure"];
|
|
170
|
-
knowledge: string;
|
|
171
|
-
}> | import("../../utils/preset").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
172
|
-
name: string;
|
|
173
|
-
created: string;
|
|
174
|
-
context: number;
|
|
175
|
-
modalities: {
|
|
176
|
-
input: readonly ["text"];
|
|
177
|
-
output: readonly ["text"];
|
|
178
|
-
};
|
|
179
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
180
|
-
providers: readonly ["cohere", "azure"];
|
|
181
|
-
knowledge: string;
|
|
182
|
-
}> | import("../../utils/preset").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
183
|
-
name: string;
|
|
184
|
-
created: string;
|
|
185
|
-
context: number;
|
|
186
|
-
modalities: {
|
|
187
|
-
input: readonly ["text", "image"];
|
|
188
|
-
output: readonly ["text"];
|
|
189
|
-
};
|
|
190
|
-
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
191
|
-
providers: readonly ["cohere", "azure"];
|
|
192
|
-
knowledge: string;
|
|
193
|
-
}> | import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
|
|
194
|
-
name: string;
|
|
195
|
-
created: string;
|
|
196
|
-
context: number;
|
|
197
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
198
|
-
modalities: {
|
|
199
|
-
input: readonly ["text"];
|
|
200
|
-
output: readonly ["text"];
|
|
201
|
-
};
|
|
202
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
203
|
-
knowledge: string;
|
|
204
|
-
}> | import("../../utils/preset").Preset<"cohere/command-r-plus", CatalogModel, {
|
|
205
|
-
name: string;
|
|
206
|
-
created: string;
|
|
207
|
-
context: number;
|
|
208
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
209
|
-
modalities: {
|
|
210
|
-
input: readonly ["text"];
|
|
211
|
-
output: readonly ["text"];
|
|
212
|
-
};
|
|
213
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
214
|
-
knowledge: string;
|
|
215
|
-
}> | import("../../utils/preset").Preset<"cohere/command-r7b", CatalogModel, {
|
|
216
|
-
name: string;
|
|
217
|
-
created: string;
|
|
218
|
-
context: number;
|
|
219
|
-
modalities: {
|
|
220
|
-
input: readonly ["text"];
|
|
221
|
-
output: readonly ["text"];
|
|
222
|
-
};
|
|
223
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
224
|
-
providers: readonly ["cohere", "azure"];
|
|
225
|
-
knowledge: string;
|
|
226
|
-
}>)[];
|
|
227
|
-
readonly A: readonly [import("../../utils/preset").Preset<"cohere/command-a", CatalogModel, {
|
|
228
|
-
name: string;
|
|
229
|
-
created: string;
|
|
230
|
-
context: number;
|
|
231
|
-
modalities: {
|
|
232
|
-
input: readonly ["text"];
|
|
233
|
-
output: readonly ["text"];
|
|
234
|
-
};
|
|
235
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
236
|
-
providers: readonly ["cohere", "azure"];
|
|
237
|
-
knowledge: string;
|
|
238
|
-
}>, import("../../utils/preset").Preset<"cohere/command-a-reasoning", CatalogModel, {
|
|
239
|
-
name: string;
|
|
240
|
-
created: string;
|
|
241
|
-
context: number;
|
|
242
|
-
modalities: {
|
|
243
|
-
input: readonly ["text"];
|
|
244
|
-
output: readonly ["text"];
|
|
245
|
-
};
|
|
246
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
247
|
-
providers: readonly ["cohere", "azure"];
|
|
248
|
-
knowledge: string;
|
|
249
|
-
}>, import("../../utils/preset").Preset<"cohere/command-a-translate", CatalogModel, {
|
|
250
|
-
name: string;
|
|
251
|
-
created: string;
|
|
252
|
-
context: number;
|
|
253
|
-
modalities: {
|
|
254
|
-
input: readonly ["text"];
|
|
255
|
-
output: readonly ["text"];
|
|
256
|
-
};
|
|
257
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
258
|
-
providers: readonly ["cohere", "azure"];
|
|
259
|
-
knowledge: string;
|
|
260
|
-
}>, import("../../utils/preset").Preset<"cohere/command-a-vision", CatalogModel, {
|
|
261
|
-
name: string;
|
|
262
|
-
created: string;
|
|
263
|
-
context: number;
|
|
264
|
-
modalities: {
|
|
265
|
-
input: readonly ["text", "image"];
|
|
266
|
-
output: readonly ["text"];
|
|
267
|
-
};
|
|
268
|
-
capabilities: readonly ["structured_output", "reasoning", "temperature"];
|
|
269
|
-
providers: readonly ["cohere", "azure"];
|
|
270
|
-
knowledge: string;
|
|
271
|
-
}>];
|
|
272
|
-
readonly R: readonly [import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
|
|
273
|
-
name: string;
|
|
274
|
-
created: string;
|
|
275
|
-
context: number;
|
|
276
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
277
|
-
modalities: {
|
|
278
|
-
input: readonly ["text"];
|
|
279
|
-
output: readonly ["text"];
|
|
280
|
-
};
|
|
281
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
282
|
-
knowledge: string;
|
|
283
|
-
}>, import("../../utils/preset").Preset<"cohere/command-r-plus", CatalogModel, {
|
|
284
|
-
name: string;
|
|
285
|
-
created: string;
|
|
286
|
-
context: number;
|
|
287
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
288
|
-
modalities: {
|
|
289
|
-
input: readonly ["text"];
|
|
290
|
-
output: readonly ["text"];
|
|
291
|
-
};
|
|
292
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
293
|
-
knowledge: string;
|
|
294
|
-
}>, import("../../utils/preset").Preset<"cohere/command-r7b", CatalogModel, {
|
|
295
|
-
name: string;
|
|
296
|
-
created: string;
|
|
297
|
-
context: number;
|
|
298
|
-
modalities: {
|
|
299
|
-
input: readonly ["text"];
|
|
300
|
-
output: readonly ["text"];
|
|
301
|
-
};
|
|
302
|
-
capabilities: readonly ["tool_call", "structured_output", "reasoning", "temperature"];
|
|
303
|
-
providers: readonly ["cohere", "azure"];
|
|
304
|
-
knowledge: string;
|
|
305
|
-
}>];
|
|
306
|
-
};
|
|
307
|
-
export declare const embed: {
|
|
308
|
-
readonly latest: readonly [import("../../utils/preset").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
309
|
-
name: string;
|
|
310
|
-
created: string;
|
|
311
|
-
context: number;
|
|
312
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
313
|
-
modalities: {
|
|
314
|
-
input: readonly ["text", "image", "pdf"];
|
|
315
|
-
output: readonly ["embedding"];
|
|
316
|
-
};
|
|
317
|
-
}>];
|
|
318
|
-
readonly all: (import("../../utils/preset").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
319
|
-
name: string;
|
|
320
|
-
created: string;
|
|
321
|
-
context: number;
|
|
322
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
323
|
-
modalities: {
|
|
324
|
-
input: readonly ["text", "image", "pdf"];
|
|
325
|
-
output: readonly ["embedding"];
|
|
326
|
-
};
|
|
327
|
-
}> | import("../../utils/preset").Preset<"cohere/embed-english-v3.0", CatalogModel, {
|
|
328
|
-
name: string;
|
|
329
|
-
created: string;
|
|
330
|
-
context: number;
|
|
331
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
332
|
-
modalities: {
|
|
333
|
-
input: readonly ["text", "image"];
|
|
334
|
-
output: readonly ["embedding"];
|
|
335
|
-
};
|
|
336
|
-
}> | import("../../utils/preset").Preset<"cohere/embed-english-light-v3.0", CatalogModel, {
|
|
337
|
-
name: string;
|
|
338
|
-
created: string;
|
|
339
|
-
context: number;
|
|
340
|
-
providers: "cohere"[];
|
|
341
|
-
modalities: {
|
|
342
|
-
input: readonly ["text", "image"];
|
|
343
|
-
output: readonly ["embedding"];
|
|
344
|
-
};
|
|
345
|
-
}> | import("../../utils/preset").Preset<"cohere/embed-multilingual-v3.0", CatalogModel, {
|
|
346
|
-
name: string;
|
|
347
|
-
created: string;
|
|
348
|
-
context: number;
|
|
349
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
350
|
-
modalities: {
|
|
351
|
-
input: readonly ["text", "image"];
|
|
352
|
-
output: readonly ["embedding"];
|
|
353
|
-
};
|
|
354
|
-
}> | import("../../utils/preset").Preset<"cohere/embed-multilingual-light-v3.0", CatalogModel, {
|
|
355
|
-
name: string;
|
|
356
|
-
created: string;
|
|
357
|
-
context: number;
|
|
358
|
-
providers: "cohere"[];
|
|
359
|
-
modalities: {
|
|
360
|
-
input: readonly ["text", "image"];
|
|
361
|
-
output: readonly ["embedding"];
|
|
362
|
-
};
|
|
363
|
-
}>)[];
|
|
364
|
-
readonly v4: readonly [import("../../utils/preset").Preset<"cohere/embed-v4.0", CatalogModel, {
|
|
365
|
-
name: string;
|
|
366
|
-
created: string;
|
|
367
|
-
context: number;
|
|
368
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
369
|
-
modalities: {
|
|
370
|
-
input: readonly ["text", "image", "pdf"];
|
|
371
|
-
output: readonly ["embedding"];
|
|
372
|
-
};
|
|
373
|
-
}>];
|
|
374
|
-
readonly v3: readonly [import("../../utils/preset").Preset<"cohere/embed-english-v3.0", CatalogModel, {
|
|
375
|
-
name: string;
|
|
376
|
-
created: string;
|
|
377
|
-
context: number;
|
|
378
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
379
|
-
modalities: {
|
|
380
|
-
input: readonly ["text", "image"];
|
|
381
|
-
output: readonly ["embedding"];
|
|
382
|
-
};
|
|
383
|
-
}>, import("../../utils/preset").Preset<"cohere/embed-english-light-v3.0", CatalogModel, {
|
|
384
|
-
name: string;
|
|
385
|
-
created: string;
|
|
386
|
-
context: number;
|
|
387
|
-
providers: "cohere"[];
|
|
388
|
-
modalities: {
|
|
389
|
-
input: readonly ["text", "image"];
|
|
390
|
-
output: readonly ["embedding"];
|
|
391
|
-
};
|
|
392
|
-
}>, import("../../utils/preset").Preset<"cohere/embed-multilingual-v3.0", CatalogModel, {
|
|
393
|
-
name: string;
|
|
394
|
-
created: string;
|
|
395
|
-
context: number;
|
|
396
|
-
providers: ("azure" | "bedrock" | "cohere")[];
|
|
397
|
-
modalities: {
|
|
398
|
-
input: readonly ["text", "image"];
|
|
399
|
-
output: readonly ["embedding"];
|
|
400
|
-
};
|
|
401
|
-
}>, import("../../utils/preset").Preset<"cohere/embed-multilingual-light-v3.0", CatalogModel, {
|
|
402
|
-
name: string;
|
|
403
|
-
created: string;
|
|
404
|
-
context: number;
|
|
405
|
-
providers: "cohere"[];
|
|
406
|
-
modalities: {
|
|
407
|
-
input: readonly ["text", "image"];
|
|
408
|
-
output: readonly ["embedding"];
|
|
409
|
-
};
|
|
410
|
-
}>];
|
|
411
|
-
};
|