@tanstack/ai-vercel-gateway 0.2.20 → 0.3.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.
- 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 -11
- package/dist/esm/model-meta.js +13 -3
- 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 +108 -30
|
@@ -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,9 +1,9 @@
|
|
|
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-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", "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-
|
|
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", "anthropic/claude-sonnet-5.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-sante", "inclusionai/ling-3.0-flash-sante-free", "inclusionai/ling-3.0-flash-vl", "inclusionai/ling-3.1-flash", "inclusionai/ling-3.1-flash-free", "inference-net/schematron-v2-small", "inference-net/schematron-v2-turbo", "interfaze/interfaze-beta", "liquid/d1", "meituan/longcat-2.5-preview", "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-6.1-sol", "openai/gpt-6.1-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", "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", "stealth/pixel-canary", "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", "liquid", "meituan", "meta", "minimax", "mistral", "mixedbread", "moonshotai", "morph", "nvidia", "openai", "perplexity", "poolside", "prodia", "quiverai", "recraft", "sakana", "spacexai", "stealth", "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];
|
|
@@ -60,12 +60,13 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
60
60
|
'anthropic/claude-opus-4.8-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
61
61
|
'anthropic/claude-opus-5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
62
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'>;
|
|
63
|
+
'anthropic/claude-opus-5.5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
64
|
+
'anthropic/claude-opus-5.5-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
65
65
|
'anthropic/claude-sonnet-4': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
66
66
|
'anthropic/claude-sonnet-4.5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
67
67
|
'anthropic/claude-sonnet-4.6': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
68
68
|
'anthropic/claude-sonnet-5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
69
|
+
'anthropic/claude-sonnet-5.5': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
69
70
|
'arcee-ai/trinity-large-thinking': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
70
71
|
'bytedance/seed-1.6': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
71
72
|
'bytedance/seed-1.8': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
@@ -82,6 +83,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
82
83
|
'deepseek/deepseek-v4-pro': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
83
84
|
'deepseek/deepseek-v4-pro-0813': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
84
85
|
'deepseek/deepseek-v4.1-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
86
|
+
'fireworks/ember-1': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
85
87
|
'fish-audio/s1': VercelGatewayCommonOptions;
|
|
86
88
|
'fish-audio/s2-pro': VercelGatewayCommonOptions;
|
|
87
89
|
'fish-audio/s2.1-pro': VercelGatewayCommonOptions;
|
|
@@ -116,13 +118,16 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
116
118
|
'inception/mercury-coder-small': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
117
119
|
'inclusionai/ling-3.0-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
118
120
|
'inclusionai/ling-3.0-flash-fin': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
119
|
-
'inclusionai/ling-3.0-flash-fin-free': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
120
121
|
'inclusionai/ling-3.0-flash-sante': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
121
122
|
'inclusionai/ling-3.0-flash-sante-free': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
122
123
|
'inclusionai/ling-3.0-flash-vl': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
124
|
+
'inclusionai/ling-3.1-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
125
|
+
'inclusionai/ling-3.1-flash-free': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
123
126
|
'inference-net/schematron-v2-small': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
124
127
|
'inference-net/schematron-v2-turbo': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
125
128
|
'interfaze/interfaze-beta': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
129
|
+
'liquid/d1': VercelGatewayCommonOptions;
|
|
130
|
+
'meituan/longcat-2.5-preview': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
126
131
|
'meta/llama-3.1-70b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
127
132
|
'meta/llama-3.1-8b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
128
133
|
'meta/llama-3.3-70b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
@@ -220,6 +225,8 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
220
225
|
'openai/gpt-6-luna-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
221
226
|
'openai/gpt-6-sol': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
222
227
|
'openai/gpt-6-sol-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
228
|
+
'openai/gpt-6.1-sol': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
229
|
+
'openai/gpt-6.1-sol-fast': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
223
230
|
'openai/gpt-live-1': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop'>;
|
|
224
231
|
'openai/gpt-oss-120b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
225
232
|
'openai/gpt-oss-20b': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -240,9 +247,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
240
247
|
'openai/tts-1': VercelGatewayCommonOptions;
|
|
241
248
|
'openai/tts-1-hd': VercelGatewayCommonOptions;
|
|
242
249
|
'openai/whisper-1': VercelGatewayCommonOptions;
|
|
243
|
-
'perplexity/sonar': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
244
|
-
'perplexity/sonar-pro': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'response_format' | 'structured_outputs'>;
|
|
245
|
-
'perplexity/sonar-reasoning-pro': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
250
|
+
'perplexity/sonar': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
246
251
|
'poolside/laguna-s-2.1': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
247
252
|
'poolside/laguna-s-2.1-free': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
248
253
|
'quiverai/arrow-2': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
@@ -268,6 +273,7 @@ export type VercelGatewayChatModelProviderOptionsByName = {
|
|
|
268
273
|
'spacexai/grok-tts': VercelGatewayCommonOptions;
|
|
269
274
|
'spacexai/grok-voice-think-fast-1.0': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
270
275
|
'spacexai/grok-voice-think-fast-2.0': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
276
|
+
'stealth/pixel-canary': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
271
277
|
'stepfun/step-3.5-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning'>;
|
|
272
278
|
'stepfun/step-3.7-flash': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
273
279
|
'stepfun/step-5-preview': VercelGatewayCommonOptions & Pick<VercelGatewayBaseOptions, 'max_tokens' | 'max_output_tokens' | 'temperature' | 'stop' | 'reasoning' | 'include_reasoning' | 'response_format' | 'structured_outputs'>;
|
|
@@ -357,6 +363,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
357
363
|
'anthropic/claude-sonnet-4.5': readonly ['text', 'image', 'document'];
|
|
358
364
|
'anthropic/claude-sonnet-4.6': readonly ['text', 'image', 'document'];
|
|
359
365
|
'anthropic/claude-sonnet-5': readonly ['text', 'image', 'document'];
|
|
366
|
+
'anthropic/claude-sonnet-5.5': readonly ['text', 'image', 'document'];
|
|
360
367
|
'arcee-ai/trinity-large-thinking': readonly ['text'];
|
|
361
368
|
'bytedance/seed-1.6': readonly ['text', 'image'];
|
|
362
369
|
'bytedance/seed-1.8': readonly ['text', 'image'];
|
|
@@ -373,6 +380,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
373
380
|
'deepseek/deepseek-v4-pro': readonly ['text'];
|
|
374
381
|
'deepseek/deepseek-v4-pro-0813': readonly ['text'];
|
|
375
382
|
'deepseek/deepseek-v4.1-flash': readonly ['text', 'image'];
|
|
383
|
+
'fireworks/ember-1': readonly ['text', 'image'];
|
|
376
384
|
'fish-audio/s1': readonly ['text'];
|
|
377
385
|
'fish-audio/s2-pro': readonly ['text'];
|
|
378
386
|
'fish-audio/s2.1-pro': readonly ['text'];
|
|
@@ -417,13 +425,16 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
417
425
|
'inception/mercury-coder-small': readonly ['text'];
|
|
418
426
|
'inclusionai/ling-3.0-flash': readonly ['text'];
|
|
419
427
|
'inclusionai/ling-3.0-flash-fin': readonly ['text'];
|
|
420
|
-
'inclusionai/ling-3.0-flash-fin-free': readonly ['text'];
|
|
421
428
|
'inclusionai/ling-3.0-flash-sante': readonly ['text'];
|
|
422
429
|
'inclusionai/ling-3.0-flash-sante-free': readonly ['text'];
|
|
423
430
|
'inclusionai/ling-3.0-flash-vl': readonly ['text', 'image', 'video'];
|
|
431
|
+
'inclusionai/ling-3.1-flash': readonly ['text'];
|
|
432
|
+
'inclusionai/ling-3.1-flash-free': readonly ['text'];
|
|
424
433
|
'inference-net/schematron-v2-small': readonly ['text'];
|
|
425
434
|
'inference-net/schematron-v2-turbo': readonly ['text'];
|
|
426
435
|
'interfaze/interfaze-beta': readonly ['text', 'image', 'document'];
|
|
436
|
+
'liquid/d1': readonly ['text'];
|
|
437
|
+
'meituan/longcat-2.5-preview': readonly ['text', 'image'];
|
|
427
438
|
'meta/llama-3.1-70b': readonly ['text'];
|
|
428
439
|
'meta/llama-3.1-8b': readonly ['text'];
|
|
429
440
|
'meta/llama-3.3-70b': readonly ['text'];
|
|
@@ -526,6 +537,8 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
526
537
|
'openai/gpt-6-luna-fast': readonly ['text', 'image', 'document'];
|
|
527
538
|
'openai/gpt-6-sol': readonly ['text', 'image', 'document'];
|
|
528
539
|
'openai/gpt-6-sol-fast': readonly ['text', 'image', 'document'];
|
|
540
|
+
'openai/gpt-6.1-sol': readonly ['text', 'image', 'document'];
|
|
541
|
+
'openai/gpt-6.1-sol-fast': readonly ['text', 'image', 'document'];
|
|
529
542
|
'openai/gpt-live-1': readonly ['text', 'audio'];
|
|
530
543
|
'openai/gpt-oss-120b': readonly ['text'];
|
|
531
544
|
'openai/gpt-oss-20b': readonly ['text'];
|
|
@@ -547,8 +560,6 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
547
560
|
'openai/tts-1-hd': readonly ['text'];
|
|
548
561
|
'openai/whisper-1': readonly ['text', 'audio'];
|
|
549
562
|
'perplexity/sonar': readonly ['text', 'image'];
|
|
550
|
-
'perplexity/sonar-pro': readonly ['text', 'image'];
|
|
551
|
-
'perplexity/sonar-reasoning-pro': readonly ['text', 'image'];
|
|
552
563
|
'poolside/laguna-s-2.1': readonly ['text'];
|
|
553
564
|
'poolside/laguna-s-2.1-free': readonly ['text'];
|
|
554
565
|
'quiverai/arrow-2': readonly ['text', 'image'];
|
|
@@ -578,6 +589,7 @@ export type VercelGatewayModelInputModalitiesByName = {
|
|
|
578
589
|
'spacexai/grok-tts': readonly ['text'];
|
|
579
590
|
'spacexai/grok-voice-think-fast-1.0': readonly ['text', 'audio'];
|
|
580
591
|
'spacexai/grok-voice-think-fast-2.0': readonly ['text', 'audio'];
|
|
592
|
+
'stealth/pixel-canary': readonly ['text', 'image'];
|
|
581
593
|
'stepfun/step-3.5-flash': readonly ['text', 'image'];
|
|
582
594
|
'stepfun/step-3.7-flash': readonly ['text', 'image'];
|
|
583
595
|
'stepfun/step-5-preview': readonly ['text', 'image'];
|
package/dist/esm/model-meta.js
CHANGED
|
@@ -54,6 +54,7 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
54
54
|
"anthropic/claude-sonnet-4.5",
|
|
55
55
|
"anthropic/claude-sonnet-4.6",
|
|
56
56
|
"anthropic/claude-sonnet-5",
|
|
57
|
+
"anthropic/claude-sonnet-5.5",
|
|
57
58
|
"arcee-ai/trinity-large-thinking",
|
|
58
59
|
"bytedance/seed-1.6",
|
|
59
60
|
"bytedance/seed-1.8",
|
|
@@ -70,6 +71,7 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
70
71
|
"deepseek/deepseek-v4-pro",
|
|
71
72
|
"deepseek/deepseek-v4-pro-0813",
|
|
72
73
|
"deepseek/deepseek-v4.1-flash",
|
|
74
|
+
"fireworks/ember-1",
|
|
73
75
|
"fish-audio/s1",
|
|
74
76
|
"fish-audio/s2-pro",
|
|
75
77
|
"fish-audio/s2.1-pro",
|
|
@@ -104,13 +106,16 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
104
106
|
"inception/mercury-coder-small",
|
|
105
107
|
"inclusionai/ling-3.0-flash",
|
|
106
108
|
"inclusionai/ling-3.0-flash-fin",
|
|
107
|
-
"inclusionai/ling-3.0-flash-fin-free",
|
|
108
109
|
"inclusionai/ling-3.0-flash-sante",
|
|
109
110
|
"inclusionai/ling-3.0-flash-sante-free",
|
|
110
111
|
"inclusionai/ling-3.0-flash-vl",
|
|
112
|
+
"inclusionai/ling-3.1-flash",
|
|
113
|
+
"inclusionai/ling-3.1-flash-free",
|
|
111
114
|
"inference-net/schematron-v2-small",
|
|
112
115
|
"inference-net/schematron-v2-turbo",
|
|
113
116
|
"interfaze/interfaze-beta",
|
|
117
|
+
"liquid/d1",
|
|
118
|
+
"meituan/longcat-2.5-preview",
|
|
114
119
|
"meta/llama-3.1-70b",
|
|
115
120
|
"meta/llama-3.1-8b",
|
|
116
121
|
"meta/llama-3.3-70b",
|
|
@@ -208,6 +213,8 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
208
213
|
"openai/gpt-6-luna-fast",
|
|
209
214
|
"openai/gpt-6-sol",
|
|
210
215
|
"openai/gpt-6-sol-fast",
|
|
216
|
+
"openai/gpt-6.1-sol",
|
|
217
|
+
"openai/gpt-6.1-sol-fast",
|
|
211
218
|
"openai/gpt-live-1",
|
|
212
219
|
"openai/gpt-oss-120b",
|
|
213
220
|
"openai/gpt-oss-20b",
|
|
@@ -229,8 +236,6 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
229
236
|
"openai/tts-1-hd",
|
|
230
237
|
"openai/whisper-1",
|
|
231
238
|
"perplexity/sonar",
|
|
232
|
-
"perplexity/sonar-pro",
|
|
233
|
-
"perplexity/sonar-reasoning-pro",
|
|
234
239
|
"poolside/laguna-s-2.1",
|
|
235
240
|
"poolside/laguna-s-2.1-free",
|
|
236
241
|
"quiverai/arrow-2",
|
|
@@ -256,6 +261,7 @@ var VERCEL_GATEWAY_CHAT_MODELS = [
|
|
|
256
261
|
"spacexai/grok-tts",
|
|
257
262
|
"spacexai/grok-voice-think-fast-1.0",
|
|
258
263
|
"spacexai/grok-voice-think-fast-2.0",
|
|
264
|
+
"stealth/pixel-canary",
|
|
259
265
|
"stepfun/step-3.5-flash",
|
|
260
266
|
"stepfun/step-3.7-flash",
|
|
261
267
|
"stepfun/step-5-preview",
|
|
@@ -299,6 +305,7 @@ var VERCEL_GATEWAY_PROVIDERS = [
|
|
|
299
305
|
"bytedance",
|
|
300
306
|
"cohere",
|
|
301
307
|
"deepseek",
|
|
308
|
+
"fireworks",
|
|
302
309
|
"fish-audio",
|
|
303
310
|
"google",
|
|
304
311
|
"inception",
|
|
@@ -306,6 +313,8 @@ var VERCEL_GATEWAY_PROVIDERS = [
|
|
|
306
313
|
"inference-net",
|
|
307
314
|
"interfaze",
|
|
308
315
|
"klingai",
|
|
316
|
+
"liquid",
|
|
317
|
+
"meituan",
|
|
309
318
|
"meta",
|
|
310
319
|
"minimax",
|
|
311
320
|
"mistral",
|
|
@@ -321,6 +330,7 @@ var VERCEL_GATEWAY_PROVIDERS = [
|
|
|
321
330
|
"recraft",
|
|
322
331
|
"sakana",
|
|
323
332
|
"spacexai",
|
|
333
|
+
"stealth",
|
|
324
334
|
"stepfun",
|
|
325
335
|
"tencent",
|
|
326
336
|
"thinkingmachines",
|