@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.
Files changed (212) hide show
  1. package/README.md +82 -4
  2. package/package.json +31 -31
  3. package/dist/config.d.ts +0 -2
  4. package/dist/config.js +0 -111
  5. package/dist/endpoints/chat-completions/converters.d.ts +0 -26
  6. package/dist/endpoints/chat-completions/converters.js +0 -524
  7. package/dist/endpoints/chat-completions/handler.d.ts +0 -2
  8. package/dist/endpoints/chat-completions/handler.js +0 -149
  9. package/dist/endpoints/chat-completions/index.d.ts +0 -4
  10. package/dist/endpoints/chat-completions/index.js +0 -4
  11. package/dist/endpoints/chat-completions/otel.d.ts +0 -5
  12. package/dist/endpoints/chat-completions/otel.js +0 -175
  13. package/dist/endpoints/chat-completions/schema.d.ts +0 -1170
  14. package/dist/endpoints/chat-completions/schema.js +0 -252
  15. package/dist/endpoints/conversations/converters.d.ts +0 -8
  16. package/dist/endpoints/conversations/converters.js +0 -29
  17. package/dist/endpoints/conversations/handler.d.ts +0 -2
  18. package/dist/endpoints/conversations/handler.js +0 -276
  19. package/dist/endpoints/conversations/index.d.ts +0 -3
  20. package/dist/endpoints/conversations/index.js +0 -3
  21. package/dist/endpoints/conversations/schema.d.ts +0 -1511
  22. package/dist/endpoints/conversations/schema.js +0 -74
  23. package/dist/endpoints/conversations/storage/dialects/greptime.d.ts +0 -10
  24. package/dist/endpoints/conversations/storage/dialects/greptime.js +0 -87
  25. package/dist/endpoints/conversations/storage/dialects/mysql.d.ts +0 -12
  26. package/dist/endpoints/conversations/storage/dialects/mysql.js +0 -118
  27. package/dist/endpoints/conversations/storage/dialects/postgres.d.ts +0 -16
  28. package/dist/endpoints/conversations/storage/dialects/postgres.js +0 -185
  29. package/dist/endpoints/conversations/storage/dialects/sqlite.d.ts +0 -11
  30. package/dist/endpoints/conversations/storage/dialects/sqlite.js +0 -176
  31. package/dist/endpoints/conversations/storage/dialects/types.d.ts +0 -42
  32. package/dist/endpoints/conversations/storage/dialects/types.js +0 -0
  33. package/dist/endpoints/conversations/storage/dialects/utils.d.ts +0 -25
  34. package/dist/endpoints/conversations/storage/dialects/utils.js +0 -80
  35. package/dist/endpoints/conversations/storage/memory.d.ts +0 -25
  36. package/dist/endpoints/conversations/storage/memory.js +0 -200
  37. package/dist/endpoints/conversations/storage/sql.d.ts +0 -33
  38. package/dist/endpoints/conversations/storage/sql.js +0 -278
  39. package/dist/endpoints/conversations/storage/types.d.ts +0 -39
  40. package/dist/endpoints/conversations/storage/types.js +0 -0
  41. package/dist/endpoints/embeddings/converters.d.ts +0 -10
  42. package/dist/endpoints/embeddings/converters.js +0 -31
  43. package/dist/endpoints/embeddings/handler.d.ts +0 -2
  44. package/dist/endpoints/embeddings/handler.js +0 -104
  45. package/dist/endpoints/embeddings/index.d.ts +0 -4
  46. package/dist/endpoints/embeddings/index.js +0 -4
  47. package/dist/endpoints/embeddings/otel.d.ts +0 -5
  48. package/dist/endpoints/embeddings/otel.js +0 -29
  49. package/dist/endpoints/embeddings/schema.d.ts +0 -44
  50. package/dist/endpoints/embeddings/schema.js +0 -29
  51. package/dist/endpoints/models/converters.d.ts +0 -6
  52. package/dist/endpoints/models/converters.js +0 -42
  53. package/dist/endpoints/models/handler.d.ts +0 -2
  54. package/dist/endpoints/models/handler.js +0 -29
  55. package/dist/endpoints/models/index.d.ts +0 -3
  56. package/dist/endpoints/models/index.js +0 -3
  57. package/dist/endpoints/models/schema.d.ts +0 -42
  58. package/dist/endpoints/models/schema.js +0 -31
  59. package/dist/endpoints/responses/converters.d.ts +0 -17
  60. package/dist/endpoints/responses/converters.js +0 -1034
  61. package/dist/endpoints/responses/handler.d.ts +0 -2
  62. package/dist/endpoints/responses/handler.js +0 -137
  63. package/dist/endpoints/responses/index.d.ts +0 -4
  64. package/dist/endpoints/responses/index.js +0 -4
  65. package/dist/endpoints/responses/otel.d.ts +0 -6
  66. package/dist/endpoints/responses/otel.js +0 -221
  67. package/dist/endpoints/responses/schema.d.ts +0 -2109
  68. package/dist/endpoints/responses/schema.js +0 -314
  69. package/dist/endpoints/shared/converters.d.ts +0 -56
  70. package/dist/endpoints/shared/converters.js +0 -179
  71. package/dist/endpoints/shared/schema.d.ts +0 -70
  72. package/dist/endpoints/shared/schema.js +0 -46
  73. package/dist/errors/ai-sdk.d.ts +0 -2
  74. package/dist/errors/ai-sdk.js +0 -52
  75. package/dist/errors/gateway.d.ts +0 -5
  76. package/dist/errors/gateway.js +0 -13
  77. package/dist/errors/openai.d.ts +0 -15
  78. package/dist/errors/openai.js +0 -40
  79. package/dist/errors/utils.d.ts +0 -22
  80. package/dist/errors/utils.js +0 -44
  81. package/dist/gateway.d.ts +0 -11
  82. package/dist/gateway.js +0 -44
  83. package/dist/index.d.ts +0 -11
  84. package/dist/index.js +0 -10
  85. package/dist/lifecycle.d.ts +0 -3
  86. package/dist/lifecycle.js +0 -113
  87. package/dist/logger/default.d.ts +0 -4
  88. package/dist/logger/default.js +0 -81
  89. package/dist/logger/index.d.ts +0 -11
  90. package/dist/logger/index.js +0 -25
  91. package/dist/middleware/common.d.ts +0 -12
  92. package/dist/middleware/common.js +0 -146
  93. package/dist/middleware/debug.d.ts +0 -3
  94. package/dist/middleware/debug.js +0 -27
  95. package/dist/middleware/matcher.d.ts +0 -28
  96. package/dist/middleware/matcher.js +0 -118
  97. package/dist/middleware/utils.d.ts +0 -2
  98. package/dist/middleware/utils.js +0 -24
  99. package/dist/models/amazon/index.d.ts +0 -2
  100. package/dist/models/amazon/index.js +0 -2
  101. package/dist/models/amazon/middleware.d.ts +0 -3
  102. package/dist/models/amazon/middleware.js +0 -68
  103. package/dist/models/amazon/presets.d.ts +0 -345
  104. package/dist/models/amazon/presets.js +0 -80
  105. package/dist/models/anthropic/index.d.ts +0 -2
  106. package/dist/models/anthropic/index.js +0 -2
  107. package/dist/models/anthropic/middleware.d.ts +0 -5
  108. package/dist/models/anthropic/middleware.js +0 -127
  109. package/dist/models/anthropic/presets.d.ts +0 -711
  110. package/dist/models/anthropic/presets.js +0 -140
  111. package/dist/models/catalog.d.ts +0 -4
  112. package/dist/models/catalog.js +0 -8
  113. package/dist/models/cohere/index.d.ts +0 -2
  114. package/dist/models/cohere/index.js +0 -2
  115. package/dist/models/cohere/middleware.d.ts +0 -3
  116. package/dist/models/cohere/middleware.js +0 -62
  117. package/dist/models/cohere/presets.d.ts +0 -411
  118. package/dist/models/cohere/presets.js +0 -134
  119. package/dist/models/google/index.d.ts +0 -2
  120. package/dist/models/google/index.js +0 -2
  121. package/dist/models/google/middleware.d.ts +0 -8
  122. package/dist/models/google/middleware.js +0 -117
  123. package/dist/models/google/presets.d.ts +0 -403
  124. package/dist/models/google/presets.js +0 -88
  125. package/dist/models/meta/index.d.ts +0 -1
  126. package/dist/models/meta/index.js +0 -1
  127. package/dist/models/meta/presets.d.ts +0 -483
  128. package/dist/models/meta/presets.js +0 -105
  129. package/dist/models/openai/index.d.ts +0 -2
  130. package/dist/models/openai/index.js +0 -2
  131. package/dist/models/openai/middleware.d.ts +0 -4
  132. package/dist/models/openai/middleware.js +0 -88
  133. package/dist/models/openai/presets.d.ts +0 -1319
  134. package/dist/models/openai/presets.js +0 -277
  135. package/dist/models/types.d.ts +0 -20
  136. package/dist/models/types.js +0 -92
  137. package/dist/models/voyage/index.d.ts +0 -2
  138. package/dist/models/voyage/index.js +0 -2
  139. package/dist/models/voyage/middleware.d.ts +0 -2
  140. package/dist/models/voyage/middleware.js +0 -19
  141. package/dist/models/voyage/presets.d.ts +0 -436
  142. package/dist/models/voyage/presets.js +0 -85
  143. package/dist/providers/anthropic/canonical.d.ts +0 -3
  144. package/dist/providers/anthropic/canonical.js +0 -9
  145. package/dist/providers/anthropic/index.d.ts +0 -1
  146. package/dist/providers/anthropic/index.js +0 -1
  147. package/dist/providers/bedrock/canonical.d.ts +0 -17
  148. package/dist/providers/bedrock/canonical.js +0 -61
  149. package/dist/providers/bedrock/index.d.ts +0 -2
  150. package/dist/providers/bedrock/index.js +0 -2
  151. package/dist/providers/bedrock/middleware.d.ts +0 -5
  152. package/dist/providers/bedrock/middleware.js +0 -137
  153. package/dist/providers/cohere/canonical.d.ts +0 -3
  154. package/dist/providers/cohere/canonical.js +0 -17
  155. package/dist/providers/cohere/index.d.ts +0 -1
  156. package/dist/providers/cohere/index.js +0 -1
  157. package/dist/providers/groq/canonical.d.ts +0 -3
  158. package/dist/providers/groq/canonical.js +0 -12
  159. package/dist/providers/groq/index.d.ts +0 -2
  160. package/dist/providers/groq/index.js +0 -2
  161. package/dist/providers/groq/middleware.d.ts +0 -2
  162. package/dist/providers/groq/middleware.js +0 -31
  163. package/dist/providers/openai/canonical.d.ts +0 -3
  164. package/dist/providers/openai/canonical.js +0 -8
  165. package/dist/providers/openai/index.d.ts +0 -1
  166. package/dist/providers/openai/index.js +0 -1
  167. package/dist/providers/registry.d.ts +0 -24
  168. package/dist/providers/registry.js +0 -103
  169. package/dist/providers/types.d.ts +0 -7
  170. package/dist/providers/types.js +0 -11
  171. package/dist/providers/vertex/canonical.d.ts +0 -3
  172. package/dist/providers/vertex/canonical.js +0 -8
  173. package/dist/providers/vertex/index.d.ts +0 -2
  174. package/dist/providers/vertex/index.js +0 -2
  175. package/dist/providers/vertex/middleware.d.ts +0 -2
  176. package/dist/providers/vertex/middleware.js +0 -47
  177. package/dist/providers/voyage/canonical.d.ts +0 -3
  178. package/dist/providers/voyage/canonical.js +0 -7
  179. package/dist/providers/voyage/index.d.ts +0 -1
  180. package/dist/providers/voyage/index.js +0 -1
  181. package/dist/telemetry/ai-sdk.d.ts +0 -2
  182. package/dist/telemetry/ai-sdk.js +0 -31
  183. package/dist/telemetry/baggage.d.ts +0 -1
  184. package/dist/telemetry/baggage.js +0 -24
  185. package/dist/telemetry/fetch.d.ts +0 -2
  186. package/dist/telemetry/fetch.js +0 -49
  187. package/dist/telemetry/gen-ai.d.ts +0 -6
  188. package/dist/telemetry/gen-ai.js +0 -78
  189. package/dist/telemetry/http.d.ts +0 -3
  190. package/dist/telemetry/http.js +0 -54
  191. package/dist/telemetry/index.d.ts +0 -1
  192. package/dist/telemetry/index.js +0 -1
  193. package/dist/telemetry/memory.d.ts +0 -2
  194. package/dist/telemetry/memory.js +0 -43
  195. package/dist/telemetry/span.d.ts +0 -13
  196. package/dist/telemetry/span.js +0 -60
  197. package/dist/types.d.ts +0 -216
  198. package/dist/types.js +0 -2
  199. package/dist/utils/env.d.ts +0 -2
  200. package/dist/utils/env.js +0 -7
  201. package/dist/utils/headers.d.ts +0 -4
  202. package/dist/utils/headers.js +0 -22
  203. package/dist/utils/preset.d.ts +0 -10
  204. package/dist/utils/preset.js +0 -41
  205. package/dist/utils/request.d.ts +0 -2
  206. package/dist/utils/request.js +0 -43
  207. package/dist/utils/response.d.ts +0 -6
  208. package/dist/utils/response.js +0 -55
  209. package/dist/utils/stream.d.ts +0 -9
  210. package/dist/utils/stream.js +0 -100
  211. package/dist/utils/url.d.ts +0 -4
  212. 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
- };
@@ -1,4 +0,0 @@
1
- import type { ModelCatalog } from "./types";
2
- type ModelCatalogInput = ModelCatalog | (() => ModelCatalog) | ModelCatalog[] | (() => ModelCatalog)[];
3
- export declare function defineModelCatalog(...inputs: ModelCatalogInput[]): ModelCatalog;
4
- export {};
@@ -1,8 +0,0 @@
1
- export function defineModelCatalog(...inputs) {
2
- const catalogs = inputs.flat().map((input) => (typeof input === "function" ? input() : input));
3
- const out = {};
4
- for (const catalog of catalogs) {
5
- Object.assign(out, catalog);
6
- }
7
- return out;
8
- }
@@ -1,2 +0,0 @@
1
- export * from "./middleware";
2
- export * from "./presets";
@@ -1,2 +0,0 @@
1
- export * from "./middleware";
2
- export * from "./presets";
@@ -1,3 +0,0 @@
1
- import type { EmbeddingModelMiddleware, LanguageModelMiddleware } from "ai";
2
- export declare const cohereDimensionsMiddleware: EmbeddingModelMiddleware;
3
- export declare const cohereReasoningMiddleware: LanguageModelMiddleware;
@@ -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
- };