@hebo-ai/gateway 0.6.2 → 0.8.0-rc0

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 (168) hide show
  1. package/README.md +134 -7
  2. package/package.json +46 -1
  3. package/dist/config.d.ts +0 -2
  4. package/dist/config.js +0 -81
  5. package/dist/endpoints/chat-completions/converters.d.ts +0 -43
  6. package/dist/endpoints/chat-completions/converters.js +0 -625
  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 -171
  13. package/dist/endpoints/chat-completions/schema.d.ts +0 -1188
  14. package/dist/endpoints/chat-completions/schema.js +0 -298
  15. package/dist/endpoints/embeddings/converters.d.ts +0 -10
  16. package/dist/endpoints/embeddings/converters.js +0 -31
  17. package/dist/endpoints/embeddings/handler.d.ts +0 -2
  18. package/dist/endpoints/embeddings/handler.js +0 -104
  19. package/dist/endpoints/embeddings/index.d.ts +0 -4
  20. package/dist/endpoints/embeddings/index.js +0 -4
  21. package/dist/endpoints/embeddings/otel.d.ts +0 -5
  22. package/dist/endpoints/embeddings/otel.js +0 -29
  23. package/dist/endpoints/embeddings/schema.d.ts +0 -44
  24. package/dist/endpoints/embeddings/schema.js +0 -29
  25. package/dist/endpoints/models/converters.d.ts +0 -6
  26. package/dist/endpoints/models/converters.js +0 -42
  27. package/dist/endpoints/models/handler.d.ts +0 -2
  28. package/dist/endpoints/models/handler.js +0 -29
  29. package/dist/endpoints/models/index.d.ts +0 -3
  30. package/dist/endpoints/models/index.js +0 -3
  31. package/dist/endpoints/models/schema.d.ts +0 -42
  32. package/dist/endpoints/models/schema.js +0 -31
  33. package/dist/errors/ai-sdk.d.ts +0 -2
  34. package/dist/errors/ai-sdk.js +0 -52
  35. package/dist/errors/gateway.d.ts +0 -5
  36. package/dist/errors/gateway.js +0 -13
  37. package/dist/errors/openai.d.ts +0 -20
  38. package/dist/errors/openai.js +0 -40
  39. package/dist/errors/utils.d.ts +0 -22
  40. package/dist/errors/utils.js +0 -44
  41. package/dist/gateway.d.ts +0 -9
  42. package/dist/gateway.js +0 -40
  43. package/dist/index.d.ts +0 -14
  44. package/dist/index.js +0 -13
  45. package/dist/lifecycle.d.ts +0 -2
  46. package/dist/lifecycle.js +0 -98
  47. package/dist/logger/default.d.ts +0 -4
  48. package/dist/logger/default.js +0 -81
  49. package/dist/logger/index.d.ts +0 -11
  50. package/dist/logger/index.js +0 -25
  51. package/dist/middleware/common.d.ts +0 -12
  52. package/dist/middleware/common.js +0 -146
  53. package/dist/middleware/debug.d.ts +0 -3
  54. package/dist/middleware/debug.js +0 -27
  55. package/dist/middleware/matcher.d.ts +0 -28
  56. package/dist/middleware/matcher.js +0 -118
  57. package/dist/middleware/utils.d.ts +0 -2
  58. package/dist/middleware/utils.js +0 -24
  59. package/dist/models/amazon/index.d.ts +0 -2
  60. package/dist/models/amazon/index.js +0 -2
  61. package/dist/models/amazon/middleware.d.ts +0 -3
  62. package/dist/models/amazon/middleware.js +0 -68
  63. package/dist/models/amazon/presets.d.ts +0 -345
  64. package/dist/models/amazon/presets.js +0 -80
  65. package/dist/models/anthropic/index.d.ts +0 -2
  66. package/dist/models/anthropic/index.js +0 -2
  67. package/dist/models/anthropic/middleware.d.ts +0 -5
  68. package/dist/models/anthropic/middleware.js +0 -127
  69. package/dist/models/anthropic/presets.d.ts +0 -711
  70. package/dist/models/anthropic/presets.js +0 -135
  71. package/dist/models/catalog.d.ts +0 -4
  72. package/dist/models/catalog.js +0 -8
  73. package/dist/models/cohere/index.d.ts +0 -2
  74. package/dist/models/cohere/index.js +0 -2
  75. package/dist/models/cohere/middleware.d.ts +0 -3
  76. package/dist/models/cohere/middleware.js +0 -62
  77. package/dist/models/cohere/presets.d.ts +0 -411
  78. package/dist/models/cohere/presets.js +0 -134
  79. package/dist/models/google/index.d.ts +0 -2
  80. package/dist/models/google/index.js +0 -2
  81. package/dist/models/google/middleware.d.ts +0 -8
  82. package/dist/models/google/middleware.js +0 -111
  83. package/dist/models/google/presets.d.ts +0 -375
  84. package/dist/models/google/presets.js +0 -82
  85. package/dist/models/meta/index.d.ts +0 -1
  86. package/dist/models/meta/index.js +0 -1
  87. package/dist/models/meta/presets.d.ts +0 -483
  88. package/dist/models/meta/presets.js +0 -95
  89. package/dist/models/openai/index.d.ts +0 -2
  90. package/dist/models/openai/index.js +0 -2
  91. package/dist/models/openai/middleware.d.ts +0 -4
  92. package/dist/models/openai/middleware.js +0 -88
  93. package/dist/models/openai/presets.d.ts +0 -959
  94. package/dist/models/openai/presets.js +0 -213
  95. package/dist/models/types.d.ts +0 -20
  96. package/dist/models/types.js +0 -84
  97. package/dist/models/voyage/index.d.ts +0 -2
  98. package/dist/models/voyage/index.js +0 -2
  99. package/dist/models/voyage/middleware.d.ts +0 -2
  100. package/dist/models/voyage/middleware.js +0 -19
  101. package/dist/models/voyage/presets.d.ts +0 -436
  102. package/dist/models/voyage/presets.js +0 -85
  103. package/dist/providers/anthropic/canonical.d.ts +0 -3
  104. package/dist/providers/anthropic/canonical.js +0 -9
  105. package/dist/providers/anthropic/index.d.ts +0 -1
  106. package/dist/providers/anthropic/index.js +0 -1
  107. package/dist/providers/bedrock/canonical.d.ts +0 -17
  108. package/dist/providers/bedrock/canonical.js +0 -61
  109. package/dist/providers/bedrock/index.d.ts +0 -2
  110. package/dist/providers/bedrock/index.js +0 -2
  111. package/dist/providers/bedrock/middleware.d.ts +0 -4
  112. package/dist/providers/bedrock/middleware.js +0 -104
  113. package/dist/providers/cohere/canonical.d.ts +0 -3
  114. package/dist/providers/cohere/canonical.js +0 -17
  115. package/dist/providers/cohere/index.d.ts +0 -1
  116. package/dist/providers/cohere/index.js +0 -1
  117. package/dist/providers/groq/canonical.d.ts +0 -3
  118. package/dist/providers/groq/canonical.js +0 -12
  119. package/dist/providers/groq/index.d.ts +0 -1
  120. package/dist/providers/groq/index.js +0 -1
  121. package/dist/providers/openai/canonical.d.ts +0 -3
  122. package/dist/providers/openai/canonical.js +0 -8
  123. package/dist/providers/openai/index.d.ts +0 -1
  124. package/dist/providers/openai/index.js +0 -1
  125. package/dist/providers/registry.d.ts +0 -24
  126. package/dist/providers/registry.js +0 -103
  127. package/dist/providers/types.d.ts +0 -7
  128. package/dist/providers/types.js +0 -11
  129. package/dist/providers/vertex/canonical.d.ts +0 -3
  130. package/dist/providers/vertex/canonical.js +0 -8
  131. package/dist/providers/vertex/index.d.ts +0 -1
  132. package/dist/providers/vertex/index.js +0 -1
  133. package/dist/providers/voyage/canonical.d.ts +0 -3
  134. package/dist/providers/voyage/canonical.js +0 -7
  135. package/dist/providers/voyage/index.d.ts +0 -1
  136. package/dist/providers/voyage/index.js +0 -1
  137. package/dist/telemetry/ai-sdk.d.ts +0 -2
  138. package/dist/telemetry/ai-sdk.js +0 -31
  139. package/dist/telemetry/baggage.d.ts +0 -1
  140. package/dist/telemetry/baggage.js +0 -24
  141. package/dist/telemetry/fetch.d.ts +0 -2
  142. package/dist/telemetry/fetch.js +0 -49
  143. package/dist/telemetry/gen-ai.d.ts +0 -6
  144. package/dist/telemetry/gen-ai.js +0 -78
  145. package/dist/telemetry/http.d.ts +0 -3
  146. package/dist/telemetry/http.js +0 -54
  147. package/dist/telemetry/index.d.ts +0 -1
  148. package/dist/telemetry/index.js +0 -1
  149. package/dist/telemetry/memory.d.ts +0 -2
  150. package/dist/telemetry/memory.js +0 -43
  151. package/dist/telemetry/span.d.ts +0 -13
  152. package/dist/telemetry/span.js +0 -60
  153. package/dist/telemetry/stream.d.ts +0 -3
  154. package/dist/telemetry/stream.js +0 -58
  155. package/dist/types.d.ts +0 -176
  156. package/dist/types.js +0 -1
  157. package/dist/utils/env.d.ts +0 -2
  158. package/dist/utils/env.js +0 -7
  159. package/dist/utils/headers.d.ts +0 -4
  160. package/dist/utils/headers.js +0 -22
  161. package/dist/utils/preset.d.ts +0 -10
  162. package/dist/utils/preset.js +0 -42
  163. package/dist/utils/request.d.ts +0 -2
  164. package/dist/utils/request.js +0 -43
  165. package/dist/utils/response.d.ts +0 -3
  166. package/dist/utils/response.js +0 -70
  167. package/dist/utils/url.d.ts +0 -4
  168. package/dist/utils/url.js +0 -21
@@ -1,135 +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: ["anthropic", "bedrock", "vertex"],
10
- };
11
- const CLAUDE_PDF_MODALITIES = {
12
- modalities: {
13
- input: ["text", "image", "pdf", "file"],
14
- output: ["text"],
15
- },
16
- };
17
- export const claudeHaiku45 = presetFor()("anthropic/claude-haiku-4.5", {
18
- ...CLAUDE_BASE,
19
- ...CLAUDE_PDF_MODALITIES,
20
- name: "Claude Haiku 4.5",
21
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
22
- created: "2025-10-01",
23
- knowledge: "2025-07",
24
- });
25
- export const claudeHaiku35 = presetFor()("anthropic/claude-haiku-3.5", {
26
- ...CLAUDE_BASE,
27
- ...CLAUDE_PDF_MODALITIES,
28
- name: "Claude Haiku 3.5",
29
- created: "2024-10-22",
30
- knowledge: "2024-07",
31
- });
32
- export const claudeHaiku3 = presetFor()("anthropic/claude-haiku-3", {
33
- ...CLAUDE_BASE,
34
- name: "Claude Haiku 3",
35
- created: "2024-03-07",
36
- knowledge: "2023-08",
37
- });
38
- export const claudeSonnet45 = presetFor()("anthropic/claude-sonnet-4.5", {
39
- ...CLAUDE_BASE,
40
- ...CLAUDE_PDF_MODALITIES,
41
- name: "Claude Sonnet 4.5",
42
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
43
- created: "2025-09-29",
44
- knowledge: "2025-07",
45
- });
46
- export const claudeSonnet46 = presetFor()("anthropic/claude-sonnet-4.6", {
47
- ...CLAUDE_BASE,
48
- ...CLAUDE_PDF_MODALITIES,
49
- name: "Claude Sonnet 4.6",
50
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
51
- created: "2026-02-17",
52
- knowledge: "2025-08",
53
- });
54
- export const claudeSonnet4 = presetFor()("anthropic/claude-sonnet-4", {
55
- ...CLAUDE_BASE,
56
- ...CLAUDE_PDF_MODALITIES,
57
- name: "Claude Sonnet 4",
58
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
59
- created: "2025-05-14",
60
- knowledge: "2025-03",
61
- });
62
- export const claudeSonnet37 = presetFor()("anthropic/claude-sonnet-3.7", {
63
- ...CLAUDE_BASE,
64
- ...CLAUDE_PDF_MODALITIES,
65
- name: "Claude Sonnet 3.7",
66
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
67
- created: "2025-02-19",
68
- knowledge: "2024-10",
69
- });
70
- export const claudeSonnet35 = presetFor()("anthropic/claude-sonnet-3.5", {
71
- ...CLAUDE_BASE,
72
- ...CLAUDE_PDF_MODALITIES,
73
- name: "Claude Sonnet 3.5",
74
- created: "2024-10-22",
75
- knowledge: "2024-04",
76
- });
77
- export const claudeOpus45 = presetFor()("anthropic/claude-opus-4.5", {
78
- ...CLAUDE_BASE,
79
- ...CLAUDE_PDF_MODALITIES,
80
- name: "Claude Opus 4.5",
81
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
82
- created: "2025-11-01",
83
- knowledge: "2025-05",
84
- });
85
- export const claudeOpus46 = presetFor()("anthropic/claude-opus-4.6", {
86
- ...CLAUDE_BASE,
87
- ...CLAUDE_PDF_MODALITIES,
88
- name: "Claude Opus 4.6",
89
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
90
- created: "2026-02-05",
91
- knowledge: "2025-05",
92
- });
93
- export const claudeOpus41 = presetFor()("anthropic/claude-opus-4.1", {
94
- ...CLAUDE_BASE,
95
- ...CLAUDE_PDF_MODALITIES,
96
- name: "Claude Opus 4.1",
97
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
98
- created: "2025-08-05",
99
- knowledge: "2025-03",
100
- });
101
- export const claudeOpus4 = presetFor()("anthropic/claude-opus-4", {
102
- ...CLAUDE_BASE,
103
- ...CLAUDE_PDF_MODALITIES,
104
- name: "Claude Opus 4",
105
- capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
106
- created: "2025-05-14",
107
- knowledge: "2025-03",
108
- });
109
- const claudeAtomic = {
110
- "v4.6": [claudeSonnet46, claudeOpus46],
111
- "v4.5": [claudeHaiku45, claudeSonnet45, claudeOpus45],
112
- "v4.1": [claudeOpus41],
113
- v4: [claudeSonnet4, claudeOpus4],
114
- "v3.7": [claudeSonnet37],
115
- "v3.5": [claudeSonnet35, claudeHaiku35],
116
- v3: [claudeHaiku3],
117
- haiku: [claudeHaiku45, claudeHaiku35, claudeHaiku3],
118
- sonnet: [claudeSonnet46, claudeSonnet45, claudeSonnet4, claudeSonnet37, claudeSonnet35],
119
- opus: [claudeOpus46, claudeOpus45, claudeOpus41, claudeOpus4],
120
- };
121
- const claudeGroups = {
122
- "v4.x": [
123
- ...claudeAtomic["v4.6"],
124
- ...claudeAtomic["v4.5"],
125
- ...claudeAtomic["v4.1"],
126
- ...claudeAtomic["v4"],
127
- ],
128
- "v3.x": [...claudeAtomic["v3.7"], ...claudeAtomic["v3.5"], ...claudeAtomic["v3"]],
129
- };
130
- export const claude = {
131
- ...claudeAtomic,
132
- ...claudeGroups,
133
- latest: [...claudeAtomic["v4.6"]],
134
- all: Object.values(claudeAtomic).flat(),
135
- };
@@ -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"];
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"];
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"];
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"];
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: ("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: ("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"];
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: ("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: ("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: ("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"];
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"];
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"];
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"];
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"];
192
- knowledge: string;
193
- }> | import("../../utils/preset").Preset<"cohere/command-r", CatalogModel, {
194
- name: string;
195
- created: string;
196
- context: number;
197
- providers: ("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: ("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"];
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"];
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"];
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"];
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"];
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: ("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: ("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"];
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: ("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: ("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: ("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: ("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: ("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: ("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: ("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
- };