@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,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", "azure"],
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", "azure"],
18
- knowledge: "2024-06",
19
- };
20
- const EMBED_V3_BASE = {
21
- modalities: {
22
- input: ["text", "image"],
23
- output: ["embedding"],
24
- },
25
- providers: ["cohere", "azure"],
26
- };
27
- const EMBED_V4_BASE = {
28
- modalities: {
29
- input: ["text", "image", "pdf"],
30
- output: ["embedding"],
31
- },
32
- providers: ["cohere", "azure"],
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", "azure"],
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", "azure"],
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", "azure"],
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", "azure"],
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", "azure"],
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): "minimal" | "low" | "medium" | "high";
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,117 +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
- if (reasoning.effort === "none") {
75
- // thinkingBudget: 0 fully disables thinking (thinkingLevel: "minimal" still allows some)
76
- target.thinkingConfig = { thinkingBudget: 0 };
77
- }
78
- else {
79
- target.thinkingConfig = {
80
- thinkingLevel: mapGeminiReasoningEffort(reasoning.effort, modelId),
81
- };
82
- }
83
- // FUTURE: warn if model is gemini-3 and max_tokens (unsupported) was ignored
84
- }
85
- const thinkingConfig = (target.thinkingConfig ??= {});
86
- thinkingConfig.includeThoughts = reasoning.enabled ? !reasoning.exclude : false;
87
- delete unknown["reasoning"];
88
- return params;
89
- },
90
- };
91
- // https://ai.google.dev/gemini-api/docs/caching
92
- // FUTURE: auto-create cached_content for message-level cache_control blocks
93
- export const geminiPromptCachingMiddleware = {
94
- specificationVersion: "v3",
95
- // oxlint-disable-next-line require-await
96
- transformParams: async ({ params }) => {
97
- const unknown = params.providerOptions?.["unknown"];
98
- if (!unknown)
99
- return params;
100
- // If cached_content options exist, just pass through
101
- if (unknown["cached_content"])
102
- return params;
103
- const promptCacheKey = unknown["prompt_cache_key"];
104
- if (promptCacheKey) {
105
- (params.providerOptions["google"] ??= {}).cachedContent =
106
- promptCacheKey;
107
- }
108
- delete unknown["cached_content"];
109
- return params;
110
- },
111
- };
112
- modelMiddlewareMatcher.useForModel("google/gemini-*embedding-*", {
113
- embedding: [geminiDimensionsMiddleware],
114
- });
115
- modelMiddlewareMatcher.useForModel(["google/gemini-2*", "google/gemini-3*"], {
116
- language: [geminiReasoningMiddleware, geminiPromptCachingMiddleware],
117
- });
@@ -1,403 +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 geminiEmbedding2Preview: import("../../utils/preset").Preset<"google/gemini-embedding-2-preview", CatalogModel, {
13
- name: string;
14
- created: string;
15
- context: number;
16
- modalities: {
17
- input: readonly ["text"];
18
- output: readonly ["embedding"];
19
- };
20
- providers: readonly ["vertex"];
21
- }>;
22
- export declare const gemini3FlashPreview: import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
23
- name: string;
24
- created: string;
25
- knowledge: string;
26
- modalities: {
27
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
28
- output: readonly ["text"];
29
- };
30
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
31
- context: number;
32
- providers: readonly ["vertex"];
33
- }>;
34
- export declare const gemini31FlashLitePreview: import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
35
- name: string;
36
- created: string;
37
- knowledge: string;
38
- modalities: {
39
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
40
- output: readonly ["text"];
41
- };
42
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
43
- context: number;
44
- providers: readonly ["vertex"];
45
- }>;
46
- export declare const gemini31ProPreview: import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
47
- name: string;
48
- created: string;
49
- knowledge: string;
50
- modalities: {
51
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
52
- output: readonly ["text"];
53
- };
54
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
55
- context: number;
56
- providers: readonly ["vertex"];
57
- }>;
58
- export declare const gemini25FlashLite: import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
59
- name: string;
60
- created: string;
61
- knowledge: string;
62
- modalities: {
63
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
64
- output: readonly ["text"];
65
- };
66
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
67
- context: number;
68
- providers: readonly ["vertex"];
69
- }>;
70
- export declare const gemini25Flash: import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
71
- name: string;
72
- created: string;
73
- knowledge: string;
74
- modalities: {
75
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
76
- output: readonly ["text"];
77
- };
78
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
79
- context: number;
80
- providers: readonly ["vertex"];
81
- }>;
82
- export declare const gemini25Pro: import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
83
- name: string;
84
- created: string;
85
- knowledge: string;
86
- modalities: {
87
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
88
- output: readonly ["text"];
89
- };
90
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
91
- context: number;
92
- providers: readonly ["vertex"];
93
- }>;
94
- export declare const gemini: {
95
- readonly latest: readonly [import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
96
- name: string;
97
- created: string;
98
- knowledge: string;
99
- modalities: {
100
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
101
- output: readonly ["text"];
102
- };
103
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
104
- context: number;
105
- providers: readonly ["vertex"];
106
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
107
- name: string;
108
- created: string;
109
- knowledge: string;
110
- modalities: {
111
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
112
- output: readonly ["text"];
113
- };
114
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
115
- context: number;
116
- providers: readonly ["vertex"];
117
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
118
- name: string;
119
- created: string;
120
- knowledge: string;
121
- modalities: {
122
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
123
- output: readonly ["text"];
124
- };
125
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
126
- context: number;
127
- providers: readonly ["vertex"];
128
- }>];
129
- readonly preview: readonly [import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
130
- name: string;
131
- created: string;
132
- knowledge: string;
133
- modalities: {
134
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
135
- output: readonly ["text"];
136
- };
137
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
138
- context: number;
139
- providers: readonly ["vertex"];
140
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
141
- name: string;
142
- created: string;
143
- knowledge: string;
144
- modalities: {
145
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
146
- output: readonly ["text"];
147
- };
148
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
149
- context: number;
150
- providers: readonly ["vertex"];
151
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
152
- name: string;
153
- created: string;
154
- knowledge: string;
155
- modalities: {
156
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
157
- output: readonly ["text"];
158
- };
159
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
160
- context: number;
161
- providers: readonly ["vertex"];
162
- }>];
163
- readonly embeddings: readonly [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-embedding-2-preview", CatalogModel, {
173
- name: string;
174
- created: string;
175
- context: number;
176
- modalities: {
177
- input: readonly ["text"];
178
- output: readonly ["embedding"];
179
- };
180
- providers: readonly ["vertex"];
181
- }>];
182
- readonly all: (import("../../utils/preset").Preset<"google/embedding-001", CatalogModel, {
183
- name: string;
184
- created: string;
185
- context: number;
186
- modalities: {
187
- input: readonly ["text"];
188
- output: readonly ["embedding"];
189
- };
190
- providers: readonly ["vertex"];
191
- }> | import("../../utils/preset").Preset<"google/gemini-embedding-2-preview", CatalogModel, {
192
- name: string;
193
- created: string;
194
- context: number;
195
- modalities: {
196
- input: readonly ["text"];
197
- output: readonly ["embedding"];
198
- };
199
- providers: readonly ["vertex"];
200
- }> | import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
201
- name: string;
202
- created: string;
203
- knowledge: string;
204
- modalities: {
205
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
206
- output: readonly ["text"];
207
- };
208
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
209
- context: number;
210
- providers: readonly ["vertex"];
211
- }> | import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
212
- name: string;
213
- created: string;
214
- knowledge: string;
215
- modalities: {
216
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
217
- output: readonly ["text"];
218
- };
219
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
220
- context: number;
221
- providers: readonly ["vertex"];
222
- }> | import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
223
- name: string;
224
- created: string;
225
- knowledge: string;
226
- modalities: {
227
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
228
- output: readonly ["text"];
229
- };
230
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
231
- context: number;
232
- providers: readonly ["vertex"];
233
- }> | import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
234
- name: string;
235
- created: string;
236
- knowledge: string;
237
- modalities: {
238
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
239
- output: readonly ["text"];
240
- };
241
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
242
- context: number;
243
- providers: readonly ["vertex"];
244
- }> | import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
245
- name: string;
246
- created: string;
247
- knowledge: string;
248
- modalities: {
249
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
250
- output: readonly ["text"];
251
- };
252
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
253
- context: number;
254
- providers: readonly ["vertex"];
255
- }> | import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
256
- name: string;
257
- created: string;
258
- knowledge: string;
259
- modalities: {
260
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
261
- output: readonly ["text"];
262
- };
263
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
264
- context: number;
265
- providers: readonly ["vertex"];
266
- }>)[];
267
- readonly "v2.x": readonly [import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
268
- name: string;
269
- created: string;
270
- knowledge: string;
271
- modalities: {
272
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
273
- output: readonly ["text"];
274
- };
275
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
276
- context: number;
277
- providers: readonly ["vertex"];
278
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
279
- name: string;
280
- created: string;
281
- knowledge: string;
282
- modalities: {
283
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
284
- output: readonly ["text"];
285
- };
286
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
287
- context: number;
288
- providers: readonly ["vertex"];
289
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
290
- name: string;
291
- created: string;
292
- knowledge: string;
293
- modalities: {
294
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
295
- output: readonly ["text"];
296
- };
297
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
298
- context: number;
299
- providers: readonly ["vertex"];
300
- }>];
301
- readonly "v3.x": readonly [import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
302
- name: string;
303
- created: string;
304
- knowledge: string;
305
- modalities: {
306
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
307
- output: readonly ["text"];
308
- };
309
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
310
- context: number;
311
- providers: readonly ["vertex"];
312
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
313
- name: string;
314
- created: string;
315
- knowledge: string;
316
- modalities: {
317
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
318
- output: readonly ["text"];
319
- };
320
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
321
- context: number;
322
- providers: readonly ["vertex"];
323
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
324
- name: string;
325
- created: string;
326
- knowledge: string;
327
- modalities: {
328
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
329
- output: readonly ["text"];
330
- };
331
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
332
- context: number;
333
- providers: readonly ["vertex"];
334
- }>];
335
- readonly "v2.5": readonly [import("../../utils/preset").Preset<"google/gemini-2.5-flash-lite", CatalogModel, {
336
- name: string;
337
- created: string;
338
- knowledge: string;
339
- modalities: {
340
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
341
- output: readonly ["text"];
342
- };
343
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
344
- context: number;
345
- providers: readonly ["vertex"];
346
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-flash", CatalogModel, {
347
- name: string;
348
- created: string;
349
- knowledge: string;
350
- modalities: {
351
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
352
- output: readonly ["text"];
353
- };
354
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
355
- context: number;
356
- providers: readonly ["vertex"];
357
- }>, import("../../utils/preset").Preset<"google/gemini-2.5-pro", CatalogModel, {
358
- name: string;
359
- created: string;
360
- knowledge: string;
361
- modalities: {
362
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
363
- output: readonly ["text"];
364
- };
365
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
366
- context: number;
367
- providers: readonly ["vertex"];
368
- }>];
369
- readonly "v3-preview": readonly [import("../../utils/preset").Preset<"google/gemini-3-flash-preview", CatalogModel, {
370
- name: string;
371
- created: string;
372
- knowledge: string;
373
- modalities: {
374
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
375
- output: readonly ["text"];
376
- };
377
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
378
- context: number;
379
- providers: readonly ["vertex"];
380
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-flash-lite-preview", CatalogModel, {
381
- name: string;
382
- created: string;
383
- knowledge: string;
384
- modalities: {
385
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
386
- output: readonly ["text"];
387
- };
388
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
389
- context: number;
390
- providers: readonly ["vertex"];
391
- }>, import("../../utils/preset").Preset<"google/gemini-3.1-pro-preview", CatalogModel, {
392
- name: string;
393
- created: string;
394
- knowledge: string;
395
- modalities: {
396
- input: readonly ["text", "image", "pdf", "file", "audio", "video"];
397
- output: readonly ["text"];
398
- };
399
- capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
400
- context: number;
401
- providers: readonly ["vertex"];
402
- }>];
403
- };