@tanstack/ai-vercel-gateway 0.2.18 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/adapters/responses-text.d.ts +2 -2
- package/dist/esm/adapters/responses-text.js +1 -1
- package/dist/esm/adapters/responses-text.js.map +1 -1
- package/dist/esm/adapters/text.d.ts +2 -2
- package/dist/esm/adapters/text.js +1 -1
- package/dist/esm/adapters/text.js.map +1 -1
- package/dist/esm/model-meta.d.ts +23 -5
- package/dist/esm/model-meta.js +12 -1
- package/dist/esm/model-meta.js.map +1 -1
- package/package.json +4 -3
- package/src/adapters/responses-text.ts +4 -1
- package/src/adapters/text.ts +4 -1
- package/src/model-meta.ts +112 -12
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OpenAIBaseResponsesTextAdapter } from '@tanstack/openai-base';
|
|
1
|
+
import { OpenAIBaseResponsesTextAdapter, OpenAIBaseTextAdapterOptions } from '@tanstack/openai-base';
|
|
2
2
|
import { Modality, TextOptions } from '@tanstack/ai';
|
|
3
3
|
import { ResponseCreateParams } from 'openai/resources/responses/responses';
|
|
4
4
|
import { VERCEL_GATEWAY_CHAT_MODELS, VercelGatewayChatModelToolCapabilitiesByName, ResolveInputModalities, ResolveProviderOptions } from '../model-meta.js';
|
|
5
5
|
import { VercelGatewayMessageMetadataByModality } from '../message-types.js';
|
|
6
6
|
import { ExternalResponsesProviderOptions } from '../text/responses-provider-options.js';
|
|
7
7
|
import { VercelGatewayClientConfig } from '../utils/client.js';
|
|
8
|
-
export interface VercelGatewayResponsesTextConfig extends VercelGatewayClientConfig {
|
|
8
|
+
export interface VercelGatewayResponsesTextConfig extends VercelGatewayClientConfig, OpenAIBaseTextAdapterOptions {
|
|
9
9
|
}
|
|
10
10
|
export type VercelGatewayResponsesTextProviderOptions = ExternalResponsesProviderOptions;
|
|
11
11
|
type ResolveToolCapabilities<TModel extends string> = TModel extends keyof VercelGatewayChatModelToolCapabilitiesByName ? NonNullable<VercelGatewayChatModelToolCapabilitiesByName[TModel]> : readonly [];
|
|
@@ -13,7 +13,7 @@ var VercelGatewayResponsesTextAdapter = class extends OpenAIBaseResponsesTextAda
|
|
|
13
13
|
kind = "text";
|
|
14
14
|
name = "vercel-gateway";
|
|
15
15
|
constructor(config, model) {
|
|
16
|
-
super(model, "vercel-gateway", new OpenAI(withVercelGatewayDefaults(config)));
|
|
16
|
+
super(model, "vercel-gateway", new OpenAI(withVercelGatewayDefaults(config)), config);
|
|
17
17
|
}
|
|
18
18
|
mapOptionsToRequest(options) {
|
|
19
19
|
const { gateway: _gateway, ...rest } = super.mapOptionsToRequest({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses-text.js","names":[],"sources":["../../../src/adapters/responses-text.ts"],"sourcesContent":["import OpenAI from 'openai'\nimport { OpenAIBaseResponsesTextAdapter } from '@tanstack/openai-base'\nimport {\n getVercelGatewayApiKeyFromEnv,\n withVercelGatewayDefaults,\n} from '../utils/client'\nimport { mapGatewayModelOptions } from '../utils/map-gateway-options'\nimport type { Modality, TextOptions } from '@tanstack/ai'\nimport type { ResponseCreateParams } from 'openai/resources/responses/responses'\nimport type {\n VERCEL_GATEWAY_CHAT_MODELS,\n VercelGatewayChatModelToolCapabilitiesByName,\n ResolveInputModalities,\n ResolveProviderOptions,\n} from '../model-meta'\nimport type { VercelGatewayMessageMetadataByModality } from '../message-types'\nimport type { ExternalResponsesProviderOptions } from '../text/responses-provider-options'\nimport type { VercelGatewayClientConfig } from '../utils/client'\n\nexport interface VercelGatewayResponsesTextConfig
|
|
1
|
+
{"version":3,"file":"responses-text.js","names":[],"sources":["../../../src/adapters/responses-text.ts"],"sourcesContent":["import OpenAI from 'openai'\nimport { OpenAIBaseResponsesTextAdapter } from '@tanstack/openai-base'\nimport {\n getVercelGatewayApiKeyFromEnv,\n withVercelGatewayDefaults,\n} from '../utils/client'\nimport { mapGatewayModelOptions } from '../utils/map-gateway-options'\nimport type { Modality, TextOptions } from '@tanstack/ai'\nimport type { ResponseCreateParams } from 'openai/resources/responses/responses'\nimport type {\n VERCEL_GATEWAY_CHAT_MODELS,\n VercelGatewayChatModelToolCapabilitiesByName,\n ResolveInputModalities,\n ResolveProviderOptions,\n} from '../model-meta'\nimport type { VercelGatewayMessageMetadataByModality } from '../message-types'\nimport type { ExternalResponsesProviderOptions } from '../text/responses-provider-options'\nimport type { VercelGatewayClientConfig } from '../utils/client'\nimport type { OpenAIBaseTextAdapterOptions } from '@tanstack/openai-base'\n\nexport interface VercelGatewayResponsesTextConfig\n extends VercelGatewayClientConfig, OpenAIBaseTextAdapterOptions {}\n\nexport type VercelGatewayResponsesTextProviderOptions =\n ExternalResponsesProviderOptions\n\ntype ResolveToolCapabilities<TModel extends string> =\n TModel extends keyof VercelGatewayChatModelToolCapabilitiesByName\n ? NonNullable<VercelGatewayChatModelToolCapabilitiesByName[TModel]>\n : readonly []\n\n/**\n * Vercel AI Gateway Responses text adapter.\n *\n * Talks to the public OpenAI-compatible Responses API at\n * `https://ai-gateway.vercel.sh/v1`.\n */\nexport class VercelGatewayResponsesTextAdapter<\n TModel extends (typeof VERCEL_GATEWAY_CHAT_MODELS)[number],\n TProviderOptions extends Record<string, any> = ResolveProviderOptions<TModel>,\n TInputModalities extends ReadonlyArray<Modality> =\n ResolveInputModalities<TModel>,\n TToolCapabilities extends ReadonlyArray<string> =\n ResolveToolCapabilities<TModel>,\n> extends OpenAIBaseResponsesTextAdapter<\n TModel,\n TProviderOptions,\n TInputModalities,\n VercelGatewayMessageMetadataByModality,\n TToolCapabilities\n> {\n override readonly kind = 'text' as const\n override readonly name = 'vercel-gateway' as const\n\n constructor(config: VercelGatewayResponsesTextConfig, model: TModel) {\n super(\n model,\n 'vercel-gateway',\n new OpenAI(withVercelGatewayDefaults(config)),\n config,\n )\n }\n\n protected override mapOptionsToRequest(\n options: TextOptions<TProviderOptions>,\n ): Omit<ResponseCreateParams, 'stream'> {\n const request = super.mapOptionsToRequest({\n ...options,\n modelOptions: mapGatewayModelOptions(\n options.modelOptions as Record<string, unknown> | undefined,\n ) as TProviderOptions,\n })\n const { gateway: _gateway, ...rest } = request as typeof request & {\n gateway?: unknown\n }\n void _gateway\n return rest\n }\n}\n\nexport function createVercelGatewayResponsesText<\n TModel extends (typeof VERCEL_GATEWAY_CHAT_MODELS)[number],\n>(\n model: TModel,\n apiKey: string,\n config?: Omit<VercelGatewayResponsesTextConfig, 'apiKey'>,\n): VercelGatewayResponsesTextAdapter<TModel> {\n return new VercelGatewayResponsesTextAdapter({ apiKey, ...config }, model)\n}\n\nexport function vercelGatewayResponsesText<\n TModel extends (typeof VERCEL_GATEWAY_CHAT_MODELS)[number],\n>(\n model: TModel,\n config?: Omit<VercelGatewayResponsesTextConfig, 'apiKey'>,\n): VercelGatewayResponsesTextAdapter<TModel> {\n return createVercelGatewayResponsesText(\n model,\n getVercelGatewayApiKeyFromEnv(),\n config,\n )\n}\n"],"mappings":";;;;;;;;;;;AAqCA,IAAa,oCAAb,cAOU,+BAMR;CACA,OAAyB;CACzB,OAAyB;CAEzB,YAAY,QAA0C,OAAe;EACnE,MACE,OACA,kBACA,IAAI,OAAO,0BAA0B,MAAM,CAAC,GAC5C,MACF;CACF;CAEA,oBACE,SACsC;EAOtC,MAAM,EAAE,SAAS,UAAU,GAAG,SANd,MAAM,oBAAoB;GACxC,GAAG;GACH,cAAc,uBACZ,QAAQ,YACV;EACF,CACuC;EAIvC,OAAO;CACT;AACF;AAEA,SAAgB,iCAGd,OACA,QACA,QAC2C;CAC3C,OAAO,IAAI,kCAAkC;EAAE;EAAQ,GAAG;CAAO,GAAG,KAAK;AAC3E;AAEA,SAAgB,2BAGd,OACA,QAC2C;CAC3C,OAAO,iCACL,OACA,8BAA8B,GAC9B,MACF;AACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as OpenAI } from 'openai';
|
|
2
|
-
import { OpenAIBaseChatCompletionsTextAdapter } from '@tanstack/openai-base';
|
|
2
|
+
import { OpenAIBaseChatCompletionsTextAdapter, OpenAIBaseTextAdapterOptions } from '@tanstack/openai-base';
|
|
3
3
|
import { Modality, TextOptions } from '@tanstack/ai';
|
|
4
4
|
import { VERCEL_GATEWAY_CHAT_MODELS, VercelGatewayChatModelToolCapabilitiesByName, ResolveInputModalities, ResolveProviderOptions } from '../model-meta.js';
|
|
5
5
|
import { VercelGatewayMessageMetadataByModality } from '../message-types.js';
|
|
6
6
|
import { VercelGatewayClientConfig } from '../utils/client.js';
|
|
7
7
|
type ResolveToolCapabilities<TModel extends string> = TModel extends keyof VercelGatewayChatModelToolCapabilitiesByName ? NonNullable<VercelGatewayChatModelToolCapabilitiesByName[TModel]> : readonly [];
|
|
8
|
-
export interface VercelGatewayTextConfig extends VercelGatewayClientConfig {
|
|
8
|
+
export interface VercelGatewayTextConfig extends VercelGatewayClientConfig, OpenAIBaseTextAdapterOptions {
|
|
9
9
|
}
|
|
10
10
|
export type { ExternalTextProviderOptions as VercelGatewayTextProviderOptions } from '../text/text-provider-options.js';
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var VercelGatewayTextAdapter = class extends OpenAIBaseChatCompletionsTextAdapte
|
|
|
13
13
|
kind = "text";
|
|
14
14
|
name = "vercel-gateway";
|
|
15
15
|
constructor(config, model) {
|
|
16
|
-
super(model, "vercel-gateway", new OpenAI(withVercelGatewayDefaults(config)));
|
|
16
|
+
super(model, "vercel-gateway", new OpenAI(withVercelGatewayDefaults(config)), config);
|
|
17
17
|
}
|
|
18
18
|
mapOptionsToRequest(options) {
|
|
19
19
|
const { gateway: _gateway, ...rest } = super.mapOptionsToRequest({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","names":[],"sources":["../../../src/adapters/text.ts"],"sourcesContent":["import OpenAI from 'openai'\nimport { OpenAIBaseChatCompletionsTextAdapter } from '@tanstack/openai-base'\nimport { withVercelGatewayDefaults } from '../utils/client'\nimport { mapGatewayModelOptions } from '../utils/map-gateway-options'\nimport type { Modality, TextOptions } from '@tanstack/ai'\nimport type {\n VERCEL_GATEWAY_CHAT_MODELS,\n VercelGatewayChatModelToolCapabilitiesByName,\n ResolveInputModalities,\n ResolveProviderOptions,\n} from '../model-meta'\nimport type { VercelGatewayMessageMetadataByModality } from '../message-types'\nimport type { VercelGatewayClientConfig } from '../utils/client'\n\ntype ResolveToolCapabilities<TModel extends string> =\n TModel extends keyof VercelGatewayChatModelToolCapabilitiesByName\n ? NonNullable<VercelGatewayChatModelToolCapabilitiesByName[TModel]>\n : readonly []\n\nexport interface VercelGatewayTextConfig
|
|
1
|
+
{"version":3,"file":"text.js","names":[],"sources":["../../../src/adapters/text.ts"],"sourcesContent":["import OpenAI from 'openai'\nimport { OpenAIBaseChatCompletionsTextAdapter } from '@tanstack/openai-base'\nimport { withVercelGatewayDefaults } from '../utils/client'\nimport { mapGatewayModelOptions } from '../utils/map-gateway-options'\nimport type { Modality, TextOptions } from '@tanstack/ai'\nimport type {\n VERCEL_GATEWAY_CHAT_MODELS,\n VercelGatewayChatModelToolCapabilitiesByName,\n ResolveInputModalities,\n ResolveProviderOptions,\n} from '../model-meta'\nimport type { VercelGatewayMessageMetadataByModality } from '../message-types'\nimport type { VercelGatewayClientConfig } from '../utils/client'\nimport type { OpenAIBaseTextAdapterOptions } from '@tanstack/openai-base'\n\ntype ResolveToolCapabilities<TModel extends string> =\n TModel extends keyof VercelGatewayChatModelToolCapabilitiesByName\n ? NonNullable<VercelGatewayChatModelToolCapabilitiesByName[TModel]>\n : readonly []\n\nexport interface VercelGatewayTextConfig\n extends VercelGatewayClientConfig, OpenAIBaseTextAdapterOptions {}\n\nexport type { ExternalTextProviderOptions as VercelGatewayTextProviderOptions } from '../text/text-provider-options'\n\n/**\n * Vercel AI Gateway text adapter.\n *\n * Talks to the public OpenAI-compatible Chat Completions API at\n * `https://ai-gateway.vercel.sh/v1`.\n */\nexport class VercelGatewayTextAdapter<\n TModel extends (typeof VERCEL_GATEWAY_CHAT_MODELS)[number],\n TProviderOptions extends Record<string, any> = ResolveProviderOptions<TModel>,\n TInputModalities extends ReadonlyArray<Modality> =\n ResolveInputModalities<TModel>,\n TToolCapabilities extends ReadonlyArray<string> =\n ResolveToolCapabilities<TModel>,\n> extends OpenAIBaseChatCompletionsTextAdapter<\n TModel,\n TProviderOptions,\n TInputModalities,\n VercelGatewayMessageMetadataByModality,\n TToolCapabilities\n> {\n override readonly kind = 'text' as const\n override readonly name = 'vercel-gateway' as const\n\n constructor(config: VercelGatewayTextConfig, model: TModel) {\n super(\n model,\n 'vercel-gateway',\n new OpenAI(withVercelGatewayDefaults(config)),\n config,\n )\n }\n\n protected override mapOptionsToRequest(options: TextOptions) {\n const request = super.mapOptionsToRequest({\n ...options,\n modelOptions: mapGatewayModelOptions(\n options.modelOptions as Record<string, unknown> | undefined,\n ) as TextOptions['modelOptions'],\n })\n const { gateway: _gateway, ...rest } = request as typeof request & {\n gateway?: unknown\n }\n void _gateway\n return rest\n }\n}\n"],"mappings":";;;;;;;;;;;AA+BA,IAAa,2BAAb,cAOU,qCAMR;CACA,OAAyB;CACzB,OAAyB;CAEzB,YAAY,QAAiC,OAAe;EAC1D,MACE,OACA,kBACA,IAAI,OAAO,0BAA0B,MAAM,CAAC,GAC5C,MACF;CACF;CAEA,oBAAuC,SAAsB;EAO3D,MAAM,EAAE,SAAS,UAAU,GAAG,SANd,MAAM,oBAAoB;GACxC,GAAG;GACH,cAAc,uBACZ,QAAQ,YACV;EACF,CACuC;EAIvC,OAAO;CACT;AACF"}
|
package/dist/esm/model-meta.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { VercelGatewayEmbeddingProviderOptions } from './embedding/embedding-provider-options.js';
|
|
2
2
|
import { VercelGatewayImageProviderOptions, VercelGatewayImageSize } from './image/image-provider-options.js';
|
|
3
3
|
import { VercelGatewayBaseOptions, VercelGatewayCommonOptions, VercelGatewayTextProviderOptions } from './text/text-provider-options.js';
|
|
4
|
-
export declare const VERCEL_GATEWAY_CHAT_MODELS: readonly ["alibaba/qwen-3-14b", "alibaba/qwen-3-235b", "alibaba/qwen-3-30b", "alibaba/qwen-3-32b", "alibaba/qwen-3.6-max-preview", "alibaba/qwen3-235b-a22b-thinking", "alibaba/qwen3-coder", "alibaba/qwen3-coder-30b-a3b", "alibaba/qwen3-coder-next", "alibaba/qwen3-coder-plus", "alibaba/qwen3-max", "alibaba/qwen3-max-preview", "alibaba/qwen3-max-thinking", "alibaba/qwen3-next-80b-a3b-instruct", "alibaba/qwen3-next-80b-a3b-thinking", "alibaba/qwen3-vl-235b-a22b-instruct", "alibaba/qwen3-vl-instruct", "alibaba/qwen3-vl-thinking", "alibaba/qwen3.5-flash", "alibaba/qwen3.5-plus", "alibaba/qwen3.6-27b", "alibaba/qwen3.6-plus", "alibaba/qwen3.7-flash", "alibaba/qwen3.7-max", "alibaba/qwen3.7-plus", "alibaba/qwen3.8-2.4t-a95b", "alibaba/qwen3.8-27b", "alibaba/qwen3.8-flash", "alibaba/qwen3.8-max", "alibaba/qwen3.8-max-0902", "alibaba/qwen3.8-omni-flash", "amazon/nova-2-lite", "amazon/nova-lite", "amazon/nova-micro", "amazon/nova-pro", "anthropic/claude-3-haiku", "anthropic/claude-fable-5", "anthropic/claude-fable-5.1", "anthropic/claude-haiku-4.5", "anthropic/claude-opus-4", "anthropic/claude-opus-4.5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.8", "anthropic/claude-opus-4.8-fast", "anthropic/claude-opus-5", "anthropic/claude-opus-5-fast", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-5", "arcee-ai/trinity-large-thinking", "bytedance/seed-1.6", "bytedance/seed-1.8", "bytedance/seed-2.1-turbo", "cohere/command-a", "deepseek/deepseek-r1", "deepseek/deepseek-v3.1", "deepseek/deepseek-v3.1-terminus", "deepseek/deepseek-v3.2", "deepseek/deepseek-v3.2-thinking", "deepseek/deepseek-v4-flash", "deepseek/deepseek-v4-flash-0731", "deepseek/deepseek-v4-flash-vision-exp", "deepseek/deepseek-v4-pro", "deepseek/deepseek-v4-pro-0813", "deepseek/deepseek-v4.1-flash", "fish-audio/s1", "fish-audio/s2-pro", "fish-audio/s2.1-pro", "fish-audio/transcribe-1", "google/gemini-2.5-flash", "google/gemini-2.5-flash-image", "google/gemini-2.5-flash-lite", "google/gemini-2.5-pro", "google/gemini-3-flash", "google/gemini-3-pro-image", "google/gemini-3.1-flash-image", "google/gemini-3.1-flash-image-preview", "google/gemini-3.1-flash-lite", "google/gemini-3.1-flash-lite-image", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.5-transcribe", "google/gemini-3.5-transcribe-live", "google/gemini-3.6-flash", "google/gemini-3.7-flash", "google/gemini-3.8-flash", "google/gemini-3.8-live", "google/gemini-3.8-live-extended-thinking", "google/gemini-omni-flash-preview", "google/gemma-4-26b-a4b-it", "google/gemma-4-31b-it", "inception/mercury-2", "inception/mercury-2.5", "inception/mercury-coder-small", "inclusionai/ling-3.0-flash", "inclusionai/ling-3.0-flash-fin", "inclusionai/ling-3.0-flash-fin-free", "inclusionai/ling-3.0-flash-sante", "inclusionai/ling-3.0-flash-sante-free", "inclusionai/ling-3.0-flash-vl", "
|
|
4
|
+
export declare const VERCEL_GATEWAY_CHAT_MODELS: readonly ["alibaba/qwen-3-14b", "alibaba/qwen-3-235b", "alibaba/qwen-3-30b", "alibaba/qwen-3-32b", "alibaba/qwen-3.6-max-preview", "alibaba/qwen3-235b-a22b-thinking", "alibaba/qwen3-coder", "alibaba/qwen3-coder-30b-a3b", "alibaba/qwen3-coder-next", "alibaba/qwen3-coder-plus", "alibaba/qwen3-max", "alibaba/qwen3-max-preview", "alibaba/qwen3-max-thinking", "alibaba/qwen3-next-80b-a3b-instruct", "alibaba/qwen3-next-80b-a3b-thinking", "alibaba/qwen3-vl-235b-a22b-instruct", "alibaba/qwen3-vl-instruct", "alibaba/qwen3-vl-thinking", "alibaba/qwen3.5-flash", "alibaba/qwen3.5-plus", "alibaba/qwen3.6-27b", "alibaba/qwen3.6-plus", "alibaba/qwen3.7-flash", "alibaba/qwen3.7-max", "alibaba/qwen3.7-plus", "alibaba/qwen3.8-2.4t-a95b", "alibaba/qwen3.8-27b", "alibaba/qwen3.8-flash", "alibaba/qwen3.8-max", "alibaba/qwen3.8-max-0902", "alibaba/qwen3.8-max-prime", "alibaba/qwen3.8-omni-flash", "amazon/nova-2-lite", "amazon/nova-lite", "amazon/nova-micro", "amazon/nova-pro", "anthropic/claude-3-haiku", "anthropic/claude-fable-5", "anthropic/claude-fable-5.1", "anthropic/claude-haiku-4.5", "anthropic/claude-opus-4", "anthropic/claude-opus-4.5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.8", "anthropic/claude-opus-4.8-fast", "anthropic/claude-opus-5", "anthropic/claude-opus-5-fast", "anthropic/claude-opus-5.5", "anthropic/claude-opus-5.5-fast", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-5", "arcee-ai/trinity-large-thinking", "bytedance/seed-1.6", "bytedance/seed-1.8", "bytedance/seed-2.1-turbo", "cohere/command-a", "deepseek/deepseek-r1", "deepseek/deepseek-v3.1", "deepseek/deepseek-v3.1-terminus", "deepseek/deepseek-v3.2", "deepseek/deepseek-v3.2-thinking", "deepseek/deepseek-v4-flash", "deepseek/deepseek-v4-flash-0731", "deepseek/deepseek-v4-flash-vision-exp", "deepseek/deepseek-v4-pro", "deepseek/deepseek-v4-pro-0813", "deepseek/deepseek-v4.1-flash", "fireworks/ember-1", "fish-audio/s1", "fish-audio/s2-pro", "fish-audio/s2.1-pro", "fish-audio/transcribe-1", "google/gemini-2.5-flash", "google/gemini-2.5-flash-image", "google/gemini-2.5-flash-lite", "google/gemini-2.5-pro", "google/gemini-3-flash", "google/gemini-3-pro-image", "google/gemini-3.1-flash-image", "google/gemini-3.1-flash-image-preview", "google/gemini-3.1-flash-lite", "google/gemini-3.1-flash-lite-image", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.5-transcribe", "google/gemini-3.5-transcribe-live", "google/gemini-3.6-flash", "google/gemini-3.7-flash", "google/gemini-3.8-flash", "google/gemini-3.8-flash-lite-tts", "google/gemini-3.8-flash-tts", "google/gemini-3.8-live", "google/gemini-3.8-live-extended-thinking", "google/gemini-omni-flash-preview", "google/gemma-4-26b-a4b-it", "google/gemma-4-31b-it", "inception/mercury-2", "inception/mercury-2.5", "inception/mercury-coder-small", "inclusionai/ling-3.0-flash", "inclusionai/ling-3.0-flash-fin", "inclusionai/ling-3.0-flash-fin-free", "inclusionai/ling-3.0-flash-sante", "inclusionai/ling-3.0-flash-sante-free", "inclusionai/ling-3.0-flash-vl", "inference-net/schematron-v2-small", "inference-net/schematron-v2-turbo", "interfaze/interfaze-beta", "meta/llama-3.1-70b", "meta/llama-3.1-8b", "meta/llama-3.3-70b", "meta/llama-4-maverick", "meta/llama-4-scout", "meta/muse-glimmer-30b", "meta/muse-spark-1.1", "meta/muse-spark-1.2", "meta/muse-spark-1.2-contributor", "meta/muse-spark-1.3", "meta/muse-spark-1.3-contributor", "minimax/minimax-m2", "minimax/minimax-m2.1", "minimax/minimax-m2.1-lightning", "minimax/minimax-m2.5", "minimax/minimax-m2.5-highspeed", "minimax/minimax-m2.7", "minimax/minimax-m2.7-highspeed", "minimax/minimax-m3", "mistral/codestral", "mistral/ministral-14b", "mistral/ministral-3b", "mistral/ministral-8b", "mistral/mistral-large-3", "mistral/mistral-medium-3.5", "mistral/mistral-nemo", "mistral/mistral-small", "mixedbread/toast-1", "moonshotai/kimi-k2", "moonshotai/kimi-k2-thinking", "moonshotai/kimi-k2.5", "moonshotai/kimi-k2.6", "moonshotai/kimi-k2.7-code", "moonshotai/kimi-k2.7-code-highspeed", "moonshotai/kimi-k3", "moonshotai/kimi-k3-fast", "morph/morph-v3-fast", "morph/morph-v3-large", "nvidia/nemotron-3-nano-30b-a3b", "nvidia/nemotron-3-super-120b-a12b", "nvidia/nemotron-3-ultra-550b-a55b", "nvidia/nemotron-3.5-lightning", "nvidia/nemotron-nano-12b-v2-vl", "nvidia/nemotron-nano-9b-v2", "openai/gpt-3.5-turbo", "openai/gpt-4-turbo", "openai/gpt-4.1", "openai/gpt-4.1-fast", "openai/gpt-4.1-mini", "openai/gpt-4.1-mini-fast", "openai/gpt-4.1-nano", "openai/gpt-4.1-nano-fast", "openai/gpt-4o", "openai/gpt-4o-fast", "openai/gpt-4o-mini", "openai/gpt-4o-mini-fast", "openai/gpt-4o-mini-transcribe", "openai/gpt-4o-transcribe", "openai/gpt-5", "openai/gpt-5-codex", "openai/gpt-5-fast", "openai/gpt-5-mini", "openai/gpt-5-mini-fast", "openai/gpt-5-nano", "openai/gpt-5-pro", "openai/gpt-5.1-codex", "openai/gpt-5.1-codex-max", "openai/gpt-5.1-codex-mini", "openai/gpt-5.1-thinking", "openai/gpt-5.1-thinking-fast", "openai/gpt-5.2", "openai/gpt-5.2-codex", "openai/gpt-5.2-fast", "openai/gpt-5.2-pro", "openai/gpt-5.3-codex", "openai/gpt-5.3-codex-fast", "openai/gpt-5.4", "openai/gpt-5.4-fast", "openai/gpt-5.4-mini", "openai/gpt-5.4-mini-fast", "openai/gpt-5.4-nano", "openai/gpt-5.4-pro", "openai/gpt-5.5", "openai/gpt-5.5-fast", "openai/gpt-5.5-pro", "openai/gpt-5.6-luna", "openai/gpt-5.6-luna-fast", "openai/gpt-5.6-sol", "openai/gpt-5.6-sol-fast", "openai/gpt-5.6-terra", "openai/gpt-5.6-terra-fast", "openai/gpt-6-astra", "openai/gpt-6-astra-fast", "openai/gpt-6-luna", "openai/gpt-6-luna-fast", "openai/gpt-6-sol", "openai/gpt-6-sol-fast", "openai/gpt-live-1", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "openai/gpt-oss-safeguard-120b", "openai/gpt-oss-safeguard-20b", "openai/gpt-realtime-1.5", "openai/gpt-realtime-2", "openai/gpt-realtime-2.1", "openai/gpt-realtime-mini", "openai/gpt-realtime-whisper", "openai/o1", "openai/o3", "openai/o3-fast", "openai/o3-mini", "openai/o3-pro", "openai/o4-mini", "openai/o4-mini-fast", "openai/tts-1", "openai/tts-1-hd", "openai/whisper-1", "perplexity/sonar", "perplexity/sonar-pro", "perplexity/sonar-reasoning-pro", "poolside/laguna-s-2.1", "poolside/laguna-s-2.1-free", "quiverai/arrow-2", "quiverai/arrow-2-telos", "sakana/fugu-max", "sakana/fugu-ultra", "sakana/fugu-ultra-v2", "sakana/namazu", "spacexai/grok-4.1-fast-non-reasoning", "spacexai/grok-4.1-fast-reasoning", "spacexai/grok-4.20-multi-agent", "spacexai/grok-4.20-multi-agent-beta", "spacexai/grok-4.20-non-reasoning", "spacexai/grok-4.20-non-reasoning-beta", "spacexai/grok-4.20-reasoning", "spacexai/grok-4.20-reasoning-beta", "spacexai/grok-4.3", "spacexai/grok-4.5", "spacexai/grok-4.6", "spacexai/grok-4.7", "spacexai/grok-build-0.1", "spacexai/grok-stt", "spacexai/grok-tts", "spacexai/grok-voice-think-fast-1.0", "spacexai/grok-voice-think-fast-2.0", "stepfun/step-3.5-flash", "stepfun/step-3.7-flash", "stepfun/step-5-preview", "tencent/hy-mt2-lite", "tencent/hy-mt2-plus", "tencent/hy-mt2-pro", "tencent/hy3", "tencent/hy4-preview", "thinkingmachines/inkling", "thinkingmachines/inkling-small", "typesafe-ai/jev", "xiaomi/mimo-v2.5", "xiaomi/mimo-v2.5-pro", "xiaomi/mimo-v2.6-flash", "xiaomi/mimo-v2.6-pro", "xiaomi/mimo-v2.6-pro-ultraspeed", "zai/glm-4.5", "zai/glm-4.5-air", "zai/glm-4.5v", "zai/glm-4.6", "zai/glm-4.7", "zai/glm-4.7-flash", "zai/glm-4.7-flashx", "zai/glm-5", "zai/glm-5-turbo", "zai/glm-5.1", "zai/glm-5.2", "zai/glm-5.2-fast", "zai/glm-5.3", "zai/glm-5.3-fast", "zai/glm-5.3-flash", "zai/glm-5.3-flashx", "zai/glm-5v-turbo"];
|
|
5
5
|
export type VercelGatewayChatModel = (typeof VERCEL_GATEWAY_CHAT_MODELS)[number];
|
|
6
|
-
export declare const VERCEL_GATEWAY_PROVIDERS: readonly ["alibaba", "amazon", "anthropic", "arcee-ai", "bfl", "bytedance", "cohere", "deepseek", "fish-audio", "google", "inception", "inclusionai", "inference-net", "interfaze", "klingai", "meta", "minimax", "mistral", "mixedbread", "moonshotai", "morph", "nvidia", "openai", "perplexity", "poolside", "prodia", "quiverai", "recraft", "sakana", "spacexai", "stepfun", "tencent", "thinkingmachines", "typesafe-ai", "voyage", "xiaomi", "zai"];
|
|
6
|
+
export declare const VERCEL_GATEWAY_PROVIDERS: readonly ["alibaba", "amazon", "anthropic", "arcee-ai", "bfl", "bytedance", "cohere", "deepseek", "fireworks", "fish-audio", "google", "inception", "inclusionai", "inference-net", "interfaze", "klingai", "meta", "minimax", "mistral", "mixedbread", "moonshotai", "morph", "nvidia", "openai", "perplexity", "poolside", "prodia", "quiverai", "recraft", "sakana", "spacexai", "stepfun", "tencent", "thinkingmachines", "typesafe-ai", "voyage", "xiaomi", "zai"];
|
|
7
7
|
export type VercelGatewayProvider = (typeof VERCEL_GATEWAY_PROVIDERS)[number];
|
|
8
8
|
export declare const VERCEL_GATEWAY_MODEL_TAGS: readonly ["audio-input", "explicit-caching", "fast", "file-input", "free", "image-generation", "implicit-caching", "reasoning", "structured-output", "tool-use", "video-generation", "video-input", "vision", "web-search", "websocket-realtime", "websocket-transcription"];
|
|
9
9
|
export type VercelGatewayModelTag = (typeof VERCEL_GATEWAY_MODEL_TAGS)[number];
|
|
10
10
|
export declare const VERCEL_GATEWAY_EMBEDDING_MODELS: readonly ["alibaba/qwen3-embedding-0.6b", "alibaba/qwen3-embedding-4b", "alibaba/qwen3-embedding-8b", "amazon/titan-embed-text-v2", "cohere/embed-v4.0", "google/gemini-embedding-001", "google/gemini-embedding-2", "google/text-embedding-005", "google/text-multilingual-embedding-002", "mistral/codestral-embed", "mistral/mistral-embed", "openai/text-embedding-3-large", "openai/text-embedding-3-small", "openai/text-embedding-ada-002", "perplexity/pplx-embed-v1-0.6b", "perplexity/pplx-embed-v1-4b", "voyage/voyage-3-large", "voyage/voyage-3.5", "voyage/voyage-3.5-lite", "voyage/voyage-4", "voyage/voyage-4-large", "voyage/voyage-4-lite", "voyage/voyage-code-2", "voyage/voyage-code-3", "voyage/voyage-finance-2", "voyage/voyage-law-2"];
|
|
11
11
|
export type VercelGatewayEmbeddingModel = (typeof VERCEL_GATEWAY_EMBEDDING_MODELS)[number];
|
|
12
|
-
export declare const VERCEL_GATEWAY_IMAGE_MODELS: readonly ["bfl/flux-2-flex", "bfl/flux-2-klein-4b", "bfl/flux-2-klein-9b", "bfl/flux-2-max", "bfl/flux-2-pro", "bfl/flux-kontext-max", "bfl/flux-kontext-pro", "bfl/flux-pro-1.0-fill", "bfl/flux-pro-1.1", "bfl/flux-pro-1.1-ultra", "bytedance/seedream-4.0", "bytedance/seedream-4.5", "bytedance/seedream-5.0-lite", "bytedance/seedream-5.0-pro", "meta/muse-image-1.0", "openai/gpt-image-1", "openai/gpt-image-1-mini", "openai/gpt-image-1.5", "openai/gpt-image-2", "openai/gpt-image-2.5-flare", "openai/gpt-image-2.5-sunburst", "prodia/flux-fast-schnell", "quiverai/arrow-1.1", "recraft/recraft-v2", "recraft/recraft-v3", "recraft/recraft-v4", "recraft/recraft-v4-pro", "recraft/recraft-v4.1", "recraft/recraft-v4.1-pro", "recraft/recraft-v4.1-utility", "recraft/recraft-v4.1-utility-pro", "spacexai/grok-imagine-image", "spacexai/grok-imagine-image-2.0"];
|
|
12
|
+
export declare const VERCEL_GATEWAY_IMAGE_MODELS: readonly ["bfl/flux-2-flex", "bfl/flux-2-klein-4b", "bfl/flux-2-klein-9b", "bfl/flux-2-max", "bfl/flux-2-pro", "bfl/flux-kontext-max", "bfl/flux-kontext-pro", "bfl/flux-pro-1.0-fill", "bfl/flux-pro-1.1", "bfl/flux-pro-1.1-ultra", "bytedance/seedream-4.0", "bytedance/seedream-4.5", "bytedance/seedream-5.0-lite", "bytedance/seedream-5.0-pro", "meta/muse-image-1.0", "openai/gpt-image-1", "openai/gpt-image-1-mini", "openai/gpt-image-1.5", "openai/gpt-image-2", "openai/gpt-image-2.5-flare", "openai/gpt-image-2.5-sunburst", "prodia/flux-fast-schnell", "quiverai/arrow-1.1", "recraft/recraft-v2", "recraft/recraft-v3", "recraft/recraft-v4", "recraft/recraft-v4-pro", "recraft/recraft-v4.1", "recraft/recraft-v4.1-flash", "recraft/recraft-v4.1-pro", "recraft/recraft-v4.1-utility", "recraft/recraft-v4.1-utility-pro", "spacexai/grok-imagine-image", "spacexai/grok-imagine-image-2.0"];
|
|
13
13
|
export type VercelGatewayImageModel = (typeof VERCEL_GATEWAY_IMAGE_MODELS)[number];
|
|
14
14
|
export type VercelGatewayChatModelProviderOptionsByName = {
|
|
15
15
|
'alibaba/qwen-3-14b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -42,6 +42,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
42
42
|
'alibaba/qwen3.8-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
43
43
|
'alibaba/qwen3.8-max': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
44
44
|
'alibaba/qwen3.8-max-0902': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
45
|
+
'alibaba/qwen3.8-max-prime': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
45
46
|
'alibaba/qwen3.8-omni-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
46
47
|
'amazon/nova-2-lite': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
47
48
|
'amazon/nova-lite': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
@@ -59,6 +60,8 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
59
60
|
'anthropic/claude-opus-4.8-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
60
61
|
'anthropic/claude-opus-5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
61
62
|
'anthropic/claude-opus-5-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
63
|
+
'anthropic/claude-opus-5.5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
64
|
+
'anthropic/claude-opus-5.5-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
62
65
|
'anthropic/claude-sonnet-4': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
63
66
|
'anthropic/claude-sonnet-4.5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
64
67
|
'anthropic/claude-sonnet-4.6': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -79,6 +82,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
79
82
|
'deepseek/deepseek-v4-pro': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
80
83
|
'deepseek/deepseek-v4-pro-0813': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
81
84
|
'deepseek/deepseek-v4.1-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
85
|
+
'fireworks/ember-1': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
82
86
|
'fish-audio/s1': VercelGatewayCommonOptions;
|
|
83
87
|
'fish-audio/s2-pro': VercelGatewayCommonOptions;
|
|
84
88
|
'fish-audio/s2.1-pro': VercelGatewayCommonOptions;
|
|
@@ -101,6 +105,8 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
101
105
|
'google/gemini-3.6-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
102
106
|
'google/gemini-3.7-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
103
107
|
'google/gemini-3.8-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
108
|
+
'google/gemini-3.8-flash-lite-tts': VercelGatewayCommonOptions;
|
|
109
|
+
'google/gemini-3.8-flash-tts': VercelGatewayCommonOptions;
|
|
104
110
|
'google/gemini-3.8-live': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
105
111
|
'google/gemini-3.8-live-extended-thinking': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
106
112
|
'google/gemini-omni-flash-preview': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -115,7 +121,6 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
115
121
|
'inclusionai/ling-3.0-flash-sante': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
116
122
|
'inclusionai/ling-3.0-flash-sante-free': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
117
123
|
'inclusionai/ling-3.0-flash-vl': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
118
|
-
'inclusionai/ling-3.0-flash-vl-free': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
119
124
|
'inference-net/schematron-v2-small': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
120
125
|
'inference-net/schematron-v2-turbo': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
121
126
|
'interfaze/interfaze-beta': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -212,6 +217,10 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
212
217
|
'openai/gpt-5.6-terra-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
213
218
|
'openai/gpt-6-astra': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
214
219
|
'openai/gpt-6-astra-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
220
|
+
'openai/gpt-6-luna': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
221
|
+
'openai/gpt-6-luna-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
222
|
+
'openai/gpt-6-sol': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
223
|
+
'openai/gpt-6-sol-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
215
224
|
'openai/gpt-live-1': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'>;
|
|
216
225
|
'openai/gpt-oss-120b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
217
226
|
'openai/gpt-oss-20b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -325,6 +334,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
325
334
|
'alibaba/qwen3.8-flash': readonly ['text', 'image', 'document'];
|
|
326
335
|
'alibaba/qwen3.8-max': readonly ['text', 'image'];
|
|
327
336
|
'alibaba/qwen3.8-max-0902': readonly ['text', 'image', 'document'];
|
|
337
|
+
'alibaba/qwen3.8-max-prime': readonly ['text', 'image'];
|
|
328
338
|
'alibaba/qwen3.8-omni-flash': readonly ['text', 'image'];
|
|
329
339
|
'amazon/nova-2-lite': readonly ['text', 'image', 'document'];
|
|
330
340
|
'amazon/nova-lite': readonly ['text', 'image', 'document'];
|
|
@@ -342,6 +352,8 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
342
352
|
'anthropic/claude-opus-4.8-fast': readonly ['text', 'image', 'document'];
|
|
343
353
|
'anthropic/claude-opus-5': readonly ['text', 'image', 'document'];
|
|
344
354
|
'anthropic/claude-opus-5-fast': readonly ['text', 'image', 'document'];
|
|
355
|
+
'anthropic/claude-opus-5.5': readonly ['text', 'image', 'document'];
|
|
356
|
+
'anthropic/claude-opus-5.5-fast': readonly ['text', 'image', 'document'];
|
|
345
357
|
'anthropic/claude-sonnet-4': readonly ['text', 'image', 'document'];
|
|
346
358
|
'anthropic/claude-sonnet-4.5': readonly ['text', 'image', 'document'];
|
|
347
359
|
'anthropic/claude-sonnet-4.6': readonly ['text', 'image', 'document'];
|
|
@@ -362,6 +374,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
362
374
|
'deepseek/deepseek-v4-pro': readonly ['text'];
|
|
363
375
|
'deepseek/deepseek-v4-pro-0813': readonly ['text'];
|
|
364
376
|
'deepseek/deepseek-v4.1-flash': readonly ['text', 'image'];
|
|
377
|
+
'fireworks/ember-1': readonly ['text', 'image'];
|
|
365
378
|
'fish-audio/s1': readonly ['text'];
|
|
366
379
|
'fish-audio/s2-pro': readonly ['text'];
|
|
367
380
|
'fish-audio/s2.1-pro': readonly ['text'];
|
|
@@ -389,6 +402,8 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
389
402
|
'google/gemini-3.6-flash': readonly ['text', 'image', 'document', 'video'];
|
|
390
403
|
'google/gemini-3.7-flash': readonly ['text', 'image', 'document', 'video'];
|
|
391
404
|
'google/gemini-3.8-flash': readonly ['text', 'image', 'document', 'video'];
|
|
405
|
+
'google/gemini-3.8-flash-lite-tts': readonly ['text'];
|
|
406
|
+
'google/gemini-3.8-flash-tts': readonly ['text'];
|
|
392
407
|
'google/gemini-3.8-live': readonly ['text', 'audio'];
|
|
393
408
|
'google/gemini-3.8-live-extended-thinking': readonly ['text', 'audio'];
|
|
394
409
|
'google/gemini-omni-flash-preview': readonly [
|
|
@@ -408,7 +423,6 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
408
423
|
'inclusionai/ling-3.0-flash-sante': readonly ['text'];
|
|
409
424
|
'inclusionai/ling-3.0-flash-sante-free': readonly ['text'];
|
|
410
425
|
'inclusionai/ling-3.0-flash-vl': readonly ['text', 'image', 'video'];
|
|
411
|
-
'inclusionai/ling-3.0-flash-vl-free': readonly ['text', 'image', 'video'];
|
|
412
426
|
'inference-net/schematron-v2-small': readonly ['text'];
|
|
413
427
|
'inference-net/schematron-v2-turbo': readonly ['text'];
|
|
414
428
|
'interfaze/interfaze-beta': readonly ['text', 'image', 'document'];
|
|
@@ -510,6 +524,10 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
510
524
|
'openai/gpt-5.6-terra-fast': readonly ['text', 'image', 'document'];
|
|
511
525
|
'openai/gpt-6-astra': readonly ['text', 'image', 'document'];
|
|
512
526
|
'openai/gpt-6-astra-fast': readonly ['text', 'image', 'document'];
|
|
527
|
+
'openai/gpt-6-luna': readonly ['text', 'image', 'document'];
|
|
528
|
+
'openai/gpt-6-luna-fast': readonly ['text', 'image', 'document'];
|
|
529
|
+
'openai/gpt-6-sol': readonly ['text', 'image', 'document'];
|
|
530
|
+
'openai/gpt-6-sol-fast': readonly ['text', 'image', 'document'];
|
|
513
531
|
'openai/gpt-live-1': readonly ['text', 'audio'];
|
|
514
532
|
'openai/gpt-oss-120b': readonly ['text'];
|
|
515
533
|
'openai/gpt-oss-20b': readonly ['text'];
|
package/dist/esm/model-meta.js
CHANGED
|
@@ -30,6 +30,7 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
30
30
|
"alibaba/qwen3.8-flash",
|
|
31
31
|
"alibaba/qwen3.8-max",
|
|
32
32
|
"alibaba/qwen3.8-max-0902",
|
|
33
|
+
"alibaba/qwen3.8-max-prime",
|
|
33
34
|
"alibaba/qwen3.8-omni-flash",
|
|
34
35
|
"amazon/nova-2-lite",
|
|
35
36
|
"amazon/nova-lite",
|
|
@@ -47,6 +48,8 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
47
48
|
"anthropic/claude-opus-4.8-fast",
|
|
48
49
|
"anthropic/claude-opus-5",
|
|
49
50
|
"anthropic/claude-opus-5-fast",
|
|
51
|
+
"anthropic/claude-opus-5.5",
|
|
52
|
+
"anthropic/claude-opus-5.5-fast",
|
|
50
53
|
"anthropic/claude-sonnet-4",
|
|
51
54
|
"anthropic/claude-sonnet-4.5",
|
|
52
55
|
"anthropic/claude-sonnet-4.6",
|
|
@@ -67,6 +70,7 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
67
70
|
"deepseek/deepseek-v4-pro",
|
|
68
71
|
"deepseek/deepseek-v4-pro-0813",
|
|
69
72
|
"deepseek/deepseek-v4.1-flash",
|
|
73
|
+
"fireworks/ember-1",
|
|
70
74
|
"fish-audio/s1",
|
|
71
75
|
"fish-audio/s2-pro",
|
|
72
76
|
"fish-audio/s2.1-pro",
|
|
@@ -89,6 +93,8 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
89
93
|
"google/gemini-3.6-flash",
|
|
90
94
|
"google/gemini-3.7-flash",
|
|
91
95
|
"google/gemini-3.8-flash",
|
|
96
|
+
"google/gemini-3.8-flash-lite-tts",
|
|
97
|
+
"google/gemini-3.8-flash-tts",
|
|
92
98
|
"google/gemini-3.8-live",
|
|
93
99
|
"google/gemini-3.8-live-extended-thinking",
|
|
94
100
|
"google/gemini-omni-flash-preview",
|
|
@@ -103,7 +109,6 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
103
109
|
"inclusionai/ling-3.0-flash-sante",
|
|
104
110
|
"inclusionai/ling-3.0-flash-sante-free",
|
|
105
111
|
"inclusionai/ling-3.0-flash-vl",
|
|
106
|
-
"inclusionai/ling-3.0-flash-vl-free",
|
|
107
112
|
"inference-net/schematron-v2-small",
|
|
108
113
|
"inference-net/schematron-v2-turbo",
|
|
109
114
|
"interfaze/interfaze-beta",
|
|
@@ -200,6 +205,10 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
200
205
|
"openai/gpt-5.6-terra-fast",
|
|
201
206
|
"openai/gpt-6-astra",
|
|
202
207
|
"openai/gpt-6-astra-fast",
|
|
208
|
+
"openai/gpt-6-luna",
|
|
209
|
+
"openai/gpt-6-luna-fast",
|
|
210
|
+
"openai/gpt-6-sol",
|
|
211
|
+
"openai/gpt-6-sol-fast",
|
|
203
212
|
"openai/gpt-live-1",
|
|
204
213
|
"openai/gpt-oss-120b",
|
|
205
214
|
"openai/gpt-oss-20b",
|
|
@@ -291,6 +300,7 @@ var VERCEL_GATEWAY_PROVIDERS = [
|
|
|
291
300
|
"bytedance",
|
|
292
301
|
"cohere",
|
|
293
302
|
"deepseek",
|
|
303
|
+
"fireworks",
|
|
294
304
|
"fish-audio",
|
|
295
305
|
"google",
|
|
296
306
|
"inception",
|
|
@@ -396,6 +406,7 @@ var VERCEL_GATEWAY_IMAGE_MODELS = [
|
|
|
396
406
|
"recraft/recraft-v4",
|
|
397
407
|
"recraft/recraft-v4-pro",
|
|
398
408
|
"recraft/recraft-v4.1",
|
|
409
|
+
"recraft/recraft-v4.1-flash",
|
|
399
410
|
"recraft/recraft-v4.1-pro",
|
|
400
411
|
"recraft/recraft-v4.1-utility",
|
|
401
412
|
"recraft/recraft-v4.1-utility-pro",
|