@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,134 +0,0 @@
1
- import { presetFor } from "../../utils/preset";
2
- const COMMAND_BASE = {
3
- modalities: {
4
- input: ["text"],
5
- output: ["text"],
6
- },
7
- capabilities: ["tool_call", "structured_output", "reasoning", "temperature"],
8
- providers: ["cohere"],
9
- knowledge: "2024-06",
10
- };
11
- const COMMAND_VISION_BASE = {
12
- modalities: {
13
- input: ["text", "image"],
14
- output: ["text"],
15
- },
16
- capabilities: ["structured_output", "reasoning", "temperature"],
17
- providers: ["cohere"],
18
- knowledge: "2024-06",
19
- };
20
- const EMBED_V3_BASE = {
21
- modalities: {
22
- input: ["text", "image"],
23
- output: ["embedding"],
24
- },
25
- providers: ["cohere"],
26
- };
27
- const EMBED_V4_BASE = {
28
- modalities: {
29
- input: ["text", "image", "pdf"],
30
- output: ["embedding"],
31
- },
32
- providers: ["cohere"],
33
- };
34
- export const commandA = presetFor()("cohere/command-a", {
35
- ...COMMAND_BASE,
36
- name: "Cohere Command A",
37
- created: "2025-03-13",
38
- context: 256000,
39
- });
40
- export const commandAReasoning = presetFor()("cohere/command-a-reasoning", {
41
- ...COMMAND_BASE,
42
- name: "Cohere Command A Reasoning",
43
- created: "2025-08-21",
44
- context: 256000,
45
- });
46
- export const commandATranslate = presetFor()("cohere/command-a-translate", {
47
- ...COMMAND_BASE,
48
- name: "Cohere Command A Translate",
49
- created: "2025-08-28",
50
- context: 8000,
51
- });
52
- export const commandAVision = presetFor()("cohere/command-a-vision", {
53
- ...COMMAND_VISION_BASE,
54
- name: "Cohere Command A Vision",
55
- created: "2025-07-31",
56
- context: 128000,
57
- });
58
- export const commandR = presetFor()("cohere/command-r", {
59
- ...COMMAND_BASE,
60
- name: "Cohere Command R",
61
- created: "2024-08-01",
62
- context: 128000,
63
- providers: ["cohere", "bedrock"],
64
- });
65
- export const commandRPlus = presetFor()("cohere/command-r-plus", {
66
- ...COMMAND_BASE,
67
- name: "Cohere Command R+",
68
- created: "2024-08-01",
69
- context: 128000,
70
- providers: ["cohere", "bedrock"],
71
- });
72
- export const commandR7b = presetFor()("cohere/command-r7b", {
73
- ...COMMAND_BASE,
74
- name: "Cohere Command R7B",
75
- created: "2024-12-13",
76
- context: 128000,
77
- });
78
- export const embed4 = presetFor()("cohere/embed-v4.0", {
79
- ...EMBED_V4_BASE,
80
- name: "Cohere 4 Embeddings",
81
- created: "2025-04-15",
82
- context: 128000,
83
- providers: ["cohere", "bedrock"],
84
- });
85
- export const embedEnglishV3 = presetFor()("cohere/embed-english-v3.0", {
86
- ...EMBED_V3_BASE,
87
- name: "Cohere Embed English v3",
88
- created: "2024-02-07",
89
- context: 512,
90
- providers: ["cohere", "bedrock"],
91
- });
92
- export const embedEnglishLightV3 = presetFor()("cohere/embed-english-light-v3.0", {
93
- ...EMBED_V3_BASE,
94
- name: "Cohere Embed English Light v3",
95
- created: "2024-02-07",
96
- context: 512,
97
- providers: ["cohere"],
98
- });
99
- export const embedMultilingualV3 = presetFor()("cohere/embed-multilingual-v3.0", {
100
- ...EMBED_V3_BASE,
101
- name: "Cohere Embed Multilingual v3",
102
- created: "2024-02-07",
103
- context: 512,
104
- providers: ["cohere", "bedrock"],
105
- });
106
- export const embedMultilingualLightV3 = presetFor()("cohere/embed-multilingual-light-v3.0", {
107
- ...EMBED_V3_BASE,
108
- name: "Cohere Embed Multilingual Light v3",
109
- created: "2024-02-07",
110
- context: 512,
111
- providers: ["cohere"],
112
- });
113
- const commandAtomic = {
114
- A: [commandA, commandAReasoning, commandATranslate, commandAVision],
115
- R: [commandR, commandRPlus, commandR7b],
116
- };
117
- const commandGroups = {};
118
- export const command = {
119
- ...commandAtomic,
120
- ...commandGroups,
121
- latest: [commandA],
122
- all: Object.values(commandAtomic).flat(),
123
- };
124
- const embedAtomic = {
125
- v4: [embed4],
126
- v3: [embedEnglishV3, embedEnglishLightV3, embedMultilingualV3, embedMultilingualLightV3],
127
- };
128
- const embedGroups = {};
129
- export const embed = {
130
- ...embedAtomic,
131
- ...embedGroups,
132
- latest: [embed4],
133
- all: Object.values(embedAtomic).flat(),
134
- };
@@ -1,2 +0,0 @@
1
- export * from "./presets";
2
- export * from "./middleware";
@@ -1,2 +0,0 @@
1
- export * from "./presets";
2
- export * from "./middleware";
@@ -1,8 +0,0 @@
1
- import type { EmbeddingModelMiddleware, LanguageModelMiddleware } from "ai";
2
- import type { ChatCompletionsReasoningEffort } from "../../endpoints/chat-completions/schema";
3
- export declare const geminiDimensionsMiddleware: EmbeddingModelMiddleware;
4
- export declare function mapGeminiReasoningEffort(effort: ChatCompletionsReasoningEffort, modelId: string): "low" | "high" | "minimal" | "medium";
5
- export declare const GEMINI_DEFAULT_MAX_OUTPUT_TOKENS = 65536;
6
- export declare const GEMINI_2_5_PRO_MIN_THINKING_BUDGET = 128;
7
- export declare const geminiReasoningMiddleware: LanguageModelMiddleware;
8
- export declare const geminiPromptCachingMiddleware: LanguageModelMiddleware;
@@ -1,111 +0,0 @@
1
- import { modelMiddlewareMatcher } from "../../middleware/matcher";
2
- import { calculateReasoningBudgetFromEffort } from "../../middleware/utils";
3
- // Convert `dimensions` (OpenAI) to `outputDimensionality` (Google)
4
- export const geminiDimensionsMiddleware = {
5
- specificationVersion: "v3",
6
- // oxlint-disable-next-line require-await
7
- transformParams: async ({ params }) => {
8
- const unknown = params.providerOptions?.["unknown"];
9
- if (!unknown)
10
- return params;
11
- const dimensions = unknown["dimensions"];
12
- if (!dimensions)
13
- return params;
14
- const target = (params.providerOptions["google"] ??= {});
15
- target.outputDimensionality = dimensions;
16
- delete unknown["dimensions"];
17
- return params;
18
- },
19
- };
20
- // https://ai.google.dev/gemini-api/docs/thinking#thinking-levels
21
- export function mapGeminiReasoningEffort(effort, modelId) {
22
- if (modelId.includes("pro")) {
23
- switch (effort) {
24
- case "none":
25
- case "minimal":
26
- case "low":
27
- return "low";
28
- case "medium":
29
- return "medium";
30
- case "high":
31
- case "xhigh":
32
- return "high";
33
- }
34
- }
35
- // Flash
36
- switch (effort) {
37
- case "none":
38
- case "minimal":
39
- return "minimal";
40
- case "low":
41
- return "low";
42
- case "medium":
43
- return "medium";
44
- case "high":
45
- case "xhigh":
46
- return "high";
47
- }
48
- }
49
- export const GEMINI_DEFAULT_MAX_OUTPUT_TOKENS = 65536;
50
- export const GEMINI_2_5_PRO_MIN_THINKING_BUDGET = 128;
51
- export const geminiReasoningMiddleware = {
52
- specificationVersion: "v3",
53
- // oxlint-disable-next-line require-await
54
- transformParams: async ({ params, model }) => {
55
- const unknown = params.providerOptions?.["unknown"];
56
- if (!unknown)
57
- return params;
58
- // If thinking options exist, just pass through
59
- if (unknown["thinking_config"])
60
- return params;
61
- const reasoning = unknown["reasoning"];
62
- if (!reasoning)
63
- return params;
64
- const target = (params.providerOptions["google"] ??= {});
65
- const modelId = model.modelId;
66
- if (modelId.includes("gemini-2")) {
67
- const is25Pro = modelId.includes("gemini-2.5-pro");
68
- target.thinkingConfig = {
69
- thinkingBudget: reasoning.max_tokens ??
70
- calculateReasoningBudgetFromEffort(reasoning.effort ?? "none", params.maxOutputTokens ?? GEMINI_DEFAULT_MAX_OUTPUT_TOKENS, is25Pro ? GEMINI_2_5_PRO_MIN_THINKING_BUDGET : 0),
71
- };
72
- }
73
- else if (modelId.includes("gemini-3") && reasoning.effort) {
74
- target.thinkingConfig = {
75
- thinkingLevel: mapGeminiReasoningEffort(reasoning.effort, modelId),
76
- };
77
- // FUTURE: warn if model is gemini-3 and max_tokens (unsupported) was ignored
78
- }
79
- const thinkingConfig = (target.thinkingConfig ??= {});
80
- thinkingConfig.includeThoughts = reasoning.enabled ? !reasoning.exclude : false;
81
- delete unknown["reasoning"];
82
- return params;
83
- },
84
- };
85
- // https://ai.google.dev/gemini-api/docs/caching
86
- // FUTURE: auto-create cached_content for message-level cache_control blocks
87
- export const geminiPromptCachingMiddleware = {
88
- specificationVersion: "v3",
89
- // oxlint-disable-next-line require-await
90
- transformParams: async ({ params }) => {
91
- const unknown = params.providerOptions?.["unknown"];
92
- if (!unknown)
93
- return params;
94
- // If cached_content options exist, just pass through
95
- if (unknown["cached_content"])
96
- return params;
97
- const promptCacheKey = unknown["prompt_cache_key"];
98
- if (promptCacheKey) {
99
- (params.providerOptions["google"] ??= {}).cachedContent =
100
- promptCacheKey;
101
- }
102
- delete unknown["cached_content"];
103
- return params;
104
- },
105
- };
106
- modelMiddlewareMatcher.useForModel("google/gemini-*embedding-*", {
107
- embedding: [geminiDimensionsMiddleware],
108
- });
109
- modelMiddlewareMatcher.useForModel(["google/gemini-2*", "google/gemini-3*"], {
110
- language: [geminiReasoningMiddleware, geminiPromptCachingMiddleware],
111
- });
@@ -1,375 +0,0 @@
1
- import type { CatalogModel } from "../types";
2
- export declare const geminiEmbedding001: import("../../utils/preset").Preset<"google/embedding-001", CatalogModel, {
3
- name: string;
4
- created: string;
5
- context: number;
6
- modalities: {
7
- input: readonly ["text"];
8
- output: readonly ["embedding"];
9
- };
10
- providers: readonly ["vertex"];
11
- }>;
12
- export declare const gemini3FlashPreview: import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
13
- name: string;
14
- created: string;
15
- knowledge: string;
16
- modalities: {
17
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
18
- output: readonly ["text"];
19
- };
20
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
21
- context: number;
22
- providers: readonly ["vertex"];
23
- }>;
24
- export declare const gemini31FlashLitePreview: import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
25
- name: string;
26
- created: string;
27
- knowledge: string;
28
- modalities: {
29
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
30
- output: readonly ["text"];
31
- };
32
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
33
- context: number;
34
- providers: readonly ["vertex"];
35
- }>;
36
- export declare const gemini31ProPreview: import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
37
- name: string;
38
- created: string;
39
- knowledge: string;
40
- modalities: {
41
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
42
- output: readonly ["text"];
43
- };
44
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
45
- context: number;
46
- providers: readonly ["vertex"];
47
- }>;
48
- export declare const gemini25FlashLite: import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
49
- name: string;
50
- created: string;
51
- knowledge: string;
52
- modalities: {
53
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
54
- output: readonly ["text"];
55
- };
56
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
57
- context: number;
58
- providers: readonly ["vertex"];
59
- }>;
60
- export declare const gemini25Flash: import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
61
- name: string;
62
- created: string;
63
- knowledge: string;
64
- modalities: {
65
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
66
- output: readonly ["text"];
67
- };
68
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
69
- context: number;
70
- providers: readonly ["vertex"];
71
- }>;
72
- export declare const gemini25Pro: import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
73
- name: string;
74
- created: string;
75
- knowledge: string;
76
- modalities: {
77
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
78
- output: readonly ["text"];
79
- };
80
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
81
- context: number;
82
- providers: readonly ["vertex"];
83
- }>;
84
- export declare const gemini: {
85
- readonly latest: readonly [import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
86
- name: string;
87
- created: string;
88
- knowledge: string;
89
- modalities: {
90
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
91
- output: readonly ["text"];
92
- };
93
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
94
- context: number;
95
- providers: readonly ["vertex"];
96
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
97
- name: string;
98
- created: string;
99
- knowledge: string;
100
- modalities: {
101
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
102
- output: readonly ["text"];
103
- };
104
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
105
- context: number;
106
- providers: readonly ["vertex"];
107
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
108
- name: string;
109
- created: string;
110
- knowledge: string;
111
- modalities: {
112
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
113
- output: readonly ["text"];
114
- };
115
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
116
- context: number;
117
- providers: readonly ["vertex"];
118
- }>];
119
- readonly preview: readonly [import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
120
- name: string;
121
- created: string;
122
- knowledge: string;
123
- modalities: {
124
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
125
- output: readonly ["text"];
126
- };
127
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
128
- context: number;
129
- providers: readonly ["vertex"];
130
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
131
- name: string;
132
- created: string;
133
- knowledge: string;
134
- modalities: {
135
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
136
- output: readonly ["text"];
137
- };
138
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
139
- context: number;
140
- providers: readonly ["vertex"];
141
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
142
- name: string;
143
- created: string;
144
- knowledge: string;
145
- modalities: {
146
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
147
- output: readonly ["text"];
148
- };
149
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
150
- context: number;
151
- providers: readonly ["vertex"];
152
- }>];
153
- readonly embeddings: readonly [import("../../utils/preset").Preset<"google/embedding-001", CatalogModel, {
154
- name: string;
155
- created: string;
156
- context: number;
157
- modalities: {
158
- input: readonly ["text"];
159
- output: readonly ["embedding"];
160
- };
161
- providers: readonly ["vertex"];
162
- }>];
163
- readonly all: (import("../../utils/preset").Preset<"google/embedding-001", CatalogModel, {
164
- name: string;
165
- created: string;
166
- context: number;
167
- modalities: {
168
- input: readonly ["text"];
169
- output: readonly ["embedding"];
170
- };
171
- providers: readonly ["vertex"];
172
- }> | import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
173
- name: string;
174
- created: string;
175
- knowledge: string;
176
- modalities: {
177
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
178
- output: readonly ["text"];
179
- };
180
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
181
- context: number;
182
- providers: readonly ["vertex"];
183
- }> | import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
184
- name: string;
185
- created: string;
186
- knowledge: string;
187
- modalities: {
188
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
189
- output: readonly ["text"];
190
- };
191
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
192
- context: number;
193
- providers: readonly ["vertex"];
194
- }> | import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
195
- name: string;
196
- created: string;
197
- knowledge: string;
198
- modalities: {
199
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
200
- output: readonly ["text"];
201
- };
202
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
203
- context: number;
204
- providers: readonly ["vertex"];
205
- }> | import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
206
- name: string;
207
- created: string;
208
- knowledge: string;
209
- modalities: {
210
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
211
- output: readonly ["text"];
212
- };
213
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
214
- context: number;
215
- providers: readonly ["vertex"];
216
- }> | import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
217
- name: string;
218
- created: string;
219
- knowledge: string;
220
- modalities: {
221
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
222
- output: readonly ["text"];
223
- };
224
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
225
- context: number;
226
- providers: readonly ["vertex"];
227
- }> | import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
228
- name: string;
229
- created: string;
230
- knowledge: string;
231
- modalities: {
232
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
233
- output: readonly ["text"];
234
- };
235
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
236
- context: number;
237
- providers: readonly ["vertex"];
238
- }>)[];
239
- readonly "v2.x": readonly [import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
240
- name: string;
241
- created: string;
242
- knowledge: string;
243
- modalities: {
244
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
245
- output: readonly ["text"];
246
- };
247
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
248
- context: number;
249
- providers: readonly ["vertex"];
250
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
251
- name: string;
252
- created: string;
253
- knowledge: string;
254
- modalities: {
255
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
256
- output: readonly ["text"];
257
- };
258
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
259
- context: number;
260
- providers: readonly ["vertex"];
261
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
262
- name: string;
263
- created: string;
264
- knowledge: string;
265
- modalities: {
266
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
267
- output: readonly ["text"];
268
- };
269
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
270
- context: number;
271
- providers: readonly ["vertex"];
272
- }>];
273
- readonly "v3.x": readonly [import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
274
- name: string;
275
- created: string;
276
- knowledge: string;
277
- modalities: {
278
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
279
- output: readonly ["text"];
280
- };
281
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
282
- context: number;
283
- providers: readonly ["vertex"];
284
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
285
- name: string;
286
- created: string;
287
- knowledge: string;
288
- modalities: {
289
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
290
- output: readonly ["text"];
291
- };
292
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
293
- context: number;
294
- providers: readonly ["vertex"];
295
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
296
- name: string;
297
- created: string;
298
- knowledge: string;
299
- modalities: {
300
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
301
- output: readonly ["text"];
302
- };
303
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
304
- context: number;
305
- providers: readonly ["vertex"];
306
- }>];
307
- readonly "v2.5": readonly [import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
308
- name: string;
309
- created: string;
310
- knowledge: string;
311
- modalities: {
312
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
313
- output: readonly ["text"];
314
- };
315
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
316
- context: number;
317
- providers: readonly ["vertex"];
318
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
319
- name: string;
320
- created: string;
321
- knowledge: string;
322
- modalities: {
323
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
324
- output: readonly ["text"];
325
- };
326
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
327
- context: number;
328
- providers: readonly ["vertex"];
329
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
330
- name: string;
331
- created: string;
332
- knowledge: string;
333
- modalities: {
334
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
335
- output: readonly ["text"];
336
- };
337
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
338
- context: number;
339
- providers: readonly ["vertex"];
340
- }>];
341
- readonly "v3-preview": readonly [import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
342
- name: string;
343
- created: string;
344
- knowledge: string;
345
- modalities: {
346
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
347
- output: readonly ["text"];
348
- };
349
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
350
- context: number;
351
- providers: readonly ["vertex"];
352
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
353
- name: string;
354
- created: string;
355
- knowledge: string;
356
- modalities: {
357
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
358
- output: readonly ["text"];
359
- };
360
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
361
- context: number;
362
- providers: readonly ["vertex"];
363
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
364
- name: string;
365
- created: string;
366
- knowledge: string;
367
- modalities: {
368
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
369
- output: readonly ["text"];
370
- };
371
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
372
- context: number;
373
- providers: readonly ["vertex"];
374
- }>];
375
- };