@ai-sdk/gateway 4.0.112 → 4.0.114
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/CHANGELOG.md +14 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/gateway-decision-model-settings.ts +1 -0
- package/src/gateway-image-model-settings.ts +2 -0
- package/src/gateway-language-model-settings.ts +54 -3
- package/src/gateway-speech-model-settings.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/gateway
|
|
2
2
|
|
|
3
|
+
## 4.0.114
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b658e85: chore(provider/gateway): update gateway model settings files
|
|
8
|
+
- Updated dependencies [2e89fa4]
|
|
9
|
+
- @ai-sdk/provider-utils@5.0.60
|
|
10
|
+
|
|
11
|
+
## 4.0.113
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 42a2895: chore(provider/gateway): update gateway model settings files
|
|
16
|
+
|
|
3
17
|
## 4.0.112
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchFunction, InferSchema, WebSocketConstructor } from "@ai-sdk/provider-utils";
|
|
2
2
|
import { APICallError, EmbeddingModelV4, Experimental_BatchV4, Experimental_DecisionModelV4, Experimental_RealtimeFactoryV4, Experimental_VideoModelV4, ImageModelV4, JSONValue, LanguageModelV4, ProviderV4, RerankingModelV4, SpeechModelV4, TranscriptionModelV4, TypeValidationError } from "@ai-sdk/provider";
|
|
3
3
|
//#region src/gateway-decision-model-settings.d.ts
|
|
4
|
-
type GatewayDecisionModelId = 'convaiinnovations/laya' | 'convaiinnovations/laya-free' | 'liquid/d1' | 'microsoft/microsoft-decision-1' | 'openai/gpt-6-luna-decisions' | 'typesafe-ai/jev' | (string & {});
|
|
4
|
+
type GatewayDecisionModelId = 'convaiinnovations/laya' | 'convaiinnovations/laya-free' | 'liquid/d1' | 'microsoft/microsoft-decision-1' | 'openai/gpt-6-luna-decisions' | 'scaledown/scaledown-classify-1' | 'typesafe-ai/jev' | (string & {});
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/gateway-provider-options.d.ts
|
|
7
7
|
/**
|
|
@@ -100,10 +100,10 @@ type GatewayModelFallbackList<QUESTION_ID extends string> = string[] | [Conditio
|
|
|
100
100
|
type GatewayEmbeddingModelId = 'alibaba/qwen3-embedding-0.6b' | 'alibaba/qwen3-embedding-4b' | 'alibaba/qwen3-embedding-8b' | 'amazon/titan-embed-text-v2' | 'cohere/embed-v4.0' | 'cohere/embed-v5.0-fast' | 'cohere/embed-v5.0-pro' | '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' | (string & {});
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/gateway-image-model-settings.d.ts
|
|
103
|
-
type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-3-image' | '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' | 'topaz/wonder-3.5' | (string & {});
|
|
103
|
+
type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-3-image' | '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' | 'microsoft/mai-image-2.6' | 'microsoft/mai-image-2.6-flash' | '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' | 'topaz/wonder-3.5' | (string & {});
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/gateway-language-model-settings.d.ts
|
|
106
|
-
type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | '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-
|
|
106
|
+
type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | '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-fable-5' | 'anthropic/claude-fable-5-batch' | 'anthropic/claude-fable-5.1' | 'anthropic/claude-fable-5.1-batch' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-haiku-4.5-batch' | 'anthropic/claude-haiku-5.5' | 'anthropic/claude-haiku-5.5-batch' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.5-batch' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.6-batch' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-batch' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-batch' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-batch' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-opus-5.5' | 'anthropic/claude-opus-5.5-batch' | 'anthropic/claude-opus-5.5-fast' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.5-batch' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-4.6-batch' | 'anthropic/claude-sonnet-5' | 'anthropic/claude-sonnet-5-batch' | 'anthropic/claude-sonnet-5.5' | 'anthropic/claude-sonnet-5.5-batch' | 'arcee-ai/trinity-large-thinking' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'bytedance/seed-2.1-turbo' | 'callstack/apex' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3.1' | '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' | 'deepseek/deepseek-v4.1-flash-fast' | 'fireworks/ember-1' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-batch' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-batch' | 'google/gemini-2.5-pro' | 'google/gemini-2.5-pro-batch' | 'google/gemini-3-flash' | 'google/gemini-3-flash-batch' | '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-batch' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.1-pro-preview-batch' | 'google/gemini-3.5-flash' | 'google/gemini-3.5-flash-batch' | 'google/gemini-3.5-flash-lite' | 'google/gemini-3.5-flash-lite-batch' | 'google/gemini-3.6-flash' | 'google/gemini-3.6-flash-batch' | 'google/gemini-3.7-flash' | 'google/gemini-3.7-flash-batch' | 'google/gemini-3.8-flash' | 'google/gemini-4-argon' | 'google/gemini-nano-banana-2.1' | '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-vl' | 'inclusionai/ling-3.1-flash' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | 'liquid/lfm2.5-24b-a2b' | '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' | 'meta/muse-wonder-1.0' | '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-large-4' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mixedbread/toast-1' | 'moonshotai/kimi-k2' | '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-3.5-lightning-free' | '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-batch' | 'openai/gpt-4.1-fast' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-mini-batch' | 'openai/gpt-4.1-mini-fast' | 'openai/gpt-4.1-nano' | 'openai/gpt-4.1-nano-batch' | 'openai/gpt-4.1-nano-fast' | 'openai/gpt-4o' | 'openai/gpt-4o-batch' | 'openai/gpt-4o-fast' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-batch' | 'openai/gpt-4o-mini-fast' | 'openai/gpt-5' | 'openai/gpt-5-batch' | 'openai/gpt-5-codex' | 'openai/gpt-5-fast' | 'openai/gpt-5-mini' | 'openai/gpt-5-mini-batch' | 'openai/gpt-5-mini-fast' | 'openai/gpt-5-nano' | 'openai/gpt-5-nano-batch' | 'openai/gpt-5-pro' | 'openai/gpt-5-pro-batch' | '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-batch' | '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-batch' | 'openai/gpt-5.4-fast' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-mini-batch' | 'openai/gpt-5.4-mini-fast' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-nano-batch' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-batch' | 'openai/gpt-5.5-fast' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.5-pro-batch' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-luna-batch' | 'openai/gpt-5.6-luna-fast' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-sol-batch' | 'openai/gpt-5.6-sol-fast' | 'openai/gpt-5.6-terra' | 'openai/gpt-5.6-terra-batch' | 'openai/gpt-5.6-terra-fast' | 'openai/gpt-6-astra' | 'openai/gpt-6-astra-batch' | 'openai/gpt-6-astra-fast' | 'openai/gpt-6-luna' | 'openai/gpt-6-luna-batch' | 'openai/gpt-6-luna-fast' | 'openai/gpt-6-sol' | 'openai/gpt-6-sol-batch' | 'openai/gpt-6-sol-fast' | 'openai/gpt-6.1-sol' | 'openai/gpt-6.1-sol-batch' | 'openai/gpt-6.1-sol-fast' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-120b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-fast' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'openai/o4-mini-fast' | '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-batch' | 'spacexai/grok-4.20-multi-agent-beta' | 'spacexai/grok-4.20-non-reasoning' | 'spacexai/grok-4.20-non-reasoning-batch' | 'spacexai/grok-4.20-non-reasoning-beta' | 'spacexai/grok-4.20-reasoning' | 'spacexai/grok-4.20-reasoning-batch' | 'spacexai/grok-4.20-reasoning-beta' | 'spacexai/grok-4.3' | 'spacexai/grok-4.3-batch' | 'spacexai/grok-4.5' | 'spacexai/grok-4.6' | 'spacexai/grok-4.7' | 'spacexai/grok-build-0.1' | 'stealth/glyph-cluster' | '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' | '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' | (string & {});
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/gateway-realtime-auth.d.ts
|
|
109
109
|
/**
|
|
@@ -180,7 +180,7 @@ type GatewayRealtimeModelId = 'google/gemini-3.8-live' | 'google/gemini-3.8-live
|
|
|
180
180
|
type GatewayRerankingModelId = 'cohere/rerank-v3.5' | 'cohere/rerank-v4-fast' | 'cohere/rerank-v4-pro' | 'voyage/rerank-2.5' | 'voyage/rerank-2.5-lite' | 'voyage/rerank-3' | 'voyage/rerank-3-lite' | (string & {});
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region src/gateway-speech-model-settings.d.ts
|
|
183
|
-
type GatewaySpeechModelId = 'fish-audio/s1' | 'fish-audio/s2-pro' | 'fish-audio/s2.1-pro' | 'google/gemini-3.8-flash-lite-tts' | 'google/gemini-3.8-flash-tts' | 'microsoft/mai-voice-2' | 'microsoft/mai-voice-2-flash' | 'microsoft/mai-voice-2.1' | 'microsoft/mai-voice-2.1-flash' | 'openai/tts-1' | 'openai/tts-1-hd' | 'spacexai/grok-tts' | (string & {});
|
|
183
|
+
type GatewaySpeechModelId = 'fish-audio/drama-3' | 'fish-audio/s1' | 'fish-audio/s2-pro' | 'fish-audio/s2.1-pro' | 'google/gemini-3.8-flash-lite-tts' | 'google/gemini-3.8-flash-tts' | 'microsoft/mai-voice-2' | 'microsoft/mai-voice-2-flash' | 'microsoft/mai-voice-2.1' | 'microsoft/mai-voice-2.1-flash' | 'openai/tts-1' | 'openai/tts-1-hd' | 'spacexai/grok-tts' | (string & {});
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/gateway-transcription-model-settings.d.ts
|
|
186
186
|
type GatewayTranscriptionModelId = 'fish-audio/transcribe-1' | 'google/gemini-3.5-transcribe' | 'google/gemini-3.5-transcribe-live' | 'microsoft/mai-transcribe-2' | 'microsoft/mai-transcribe-2-streaming' | 'openai/gpt-4o-mini-transcribe' | 'openai/gpt-4o-transcribe' | 'openai/gpt-realtime-whisper' | 'openai/whisper-1' | 'spacexai/grok-stt' | (string & {});
|
package/dist/index.js
CHANGED
|
@@ -3050,7 +3050,7 @@ async function getVercelRequestId() {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
//#endregion
|
|
3052
3052
|
//#region src/version.ts
|
|
3053
|
-
const VERSION = "4.0.
|
|
3053
|
+
const VERSION = "4.0.114";
|
|
3054
3054
|
//#endregion
|
|
3055
3055
|
//#region src/gateway-provider.ts
|
|
3056
3056
|
const AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/gateway",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.114",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/provider": "4.0.27",
|
|
34
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
34
|
+
"@ai-sdk/provider-utils": "5.0.60",
|
|
35
35
|
"@vercel/oidc": "3.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -15,6 +15,8 @@ export type GatewayImageModelId =
|
|
|
15
15
|
| 'bytedance/seedream-5.0-lite'
|
|
16
16
|
| 'bytedance/seedream-5.0-pro'
|
|
17
17
|
| 'meta/muse-image-1.0'
|
|
18
|
+
| 'microsoft/mai-image-2.6'
|
|
19
|
+
| 'microsoft/mai-image-2.6-flash'
|
|
18
20
|
| 'openai/gpt-image-1'
|
|
19
21
|
| 'openai/gpt-image-1-mini'
|
|
20
22
|
| 'openai/gpt-image-1.5'
|
|
@@ -28,26 +28,38 @@ export type GatewayModelId =
|
|
|
28
28
|
| 'amazon/nova-lite'
|
|
29
29
|
| 'amazon/nova-micro'
|
|
30
30
|
| 'amazon/nova-pro'
|
|
31
|
-
| 'anthropic/claude-3-haiku'
|
|
32
31
|
| 'anthropic/claude-fable-5'
|
|
32
|
+
| 'anthropic/claude-fable-5-batch'
|
|
33
33
|
| 'anthropic/claude-fable-5.1'
|
|
34
|
+
| 'anthropic/claude-fable-5.1-batch'
|
|
34
35
|
| 'anthropic/claude-haiku-4.5'
|
|
36
|
+
| 'anthropic/claude-haiku-4.5-batch'
|
|
35
37
|
| 'anthropic/claude-haiku-5.5'
|
|
36
|
-
| 'anthropic/claude-
|
|
38
|
+
| 'anthropic/claude-haiku-5.5-batch'
|
|
37
39
|
| 'anthropic/claude-opus-4.5'
|
|
40
|
+
| 'anthropic/claude-opus-4.5-batch'
|
|
38
41
|
| 'anthropic/claude-opus-4.6'
|
|
42
|
+
| 'anthropic/claude-opus-4.6-batch'
|
|
39
43
|
| 'anthropic/claude-opus-4.7'
|
|
44
|
+
| 'anthropic/claude-opus-4.7-batch'
|
|
40
45
|
| 'anthropic/claude-opus-4.8'
|
|
46
|
+
| 'anthropic/claude-opus-4.8-batch'
|
|
41
47
|
| 'anthropic/claude-opus-4.8-fast'
|
|
42
48
|
| 'anthropic/claude-opus-5'
|
|
49
|
+
| 'anthropic/claude-opus-5-batch'
|
|
43
50
|
| 'anthropic/claude-opus-5-fast'
|
|
44
51
|
| 'anthropic/claude-opus-5.5'
|
|
52
|
+
| 'anthropic/claude-opus-5.5-batch'
|
|
45
53
|
| 'anthropic/claude-opus-5.5-fast'
|
|
46
54
|
| 'anthropic/claude-sonnet-4'
|
|
47
55
|
| 'anthropic/claude-sonnet-4.5'
|
|
56
|
+
| 'anthropic/claude-sonnet-4.5-batch'
|
|
48
57
|
| 'anthropic/claude-sonnet-4.6'
|
|
58
|
+
| 'anthropic/claude-sonnet-4.6-batch'
|
|
49
59
|
| 'anthropic/claude-sonnet-5'
|
|
60
|
+
| 'anthropic/claude-sonnet-5-batch'
|
|
50
61
|
| 'anthropic/claude-sonnet-5.5'
|
|
62
|
+
| 'anthropic/claude-sonnet-5.5-batch'
|
|
51
63
|
| 'arcee-ai/trinity-large-thinking'
|
|
52
64
|
| 'bytedance/seed-1.6'
|
|
53
65
|
| 'bytedance/seed-1.8'
|
|
@@ -64,22 +76,33 @@ export type GatewayModelId =
|
|
|
64
76
|
| 'deepseek/deepseek-v4-pro'
|
|
65
77
|
| 'deepseek/deepseek-v4-pro-0813'
|
|
66
78
|
| 'deepseek/deepseek-v4.1-flash'
|
|
79
|
+
| 'deepseek/deepseek-v4.1-flash-fast'
|
|
67
80
|
| 'fireworks/ember-1'
|
|
68
81
|
| 'google/gemini-2.5-flash'
|
|
82
|
+
| 'google/gemini-2.5-flash-batch'
|
|
69
83
|
| 'google/gemini-2.5-flash-image'
|
|
70
84
|
| 'google/gemini-2.5-flash-lite'
|
|
85
|
+
| 'google/gemini-2.5-flash-lite-batch'
|
|
71
86
|
| 'google/gemini-2.5-pro'
|
|
87
|
+
| 'google/gemini-2.5-pro-batch'
|
|
72
88
|
| 'google/gemini-3-flash'
|
|
89
|
+
| 'google/gemini-3-flash-batch'
|
|
73
90
|
| 'google/gemini-3-pro-image'
|
|
74
91
|
| 'google/gemini-3.1-flash-image'
|
|
75
92
|
| 'google/gemini-3.1-flash-image-preview'
|
|
76
93
|
| 'google/gemini-3.1-flash-lite'
|
|
94
|
+
| 'google/gemini-3.1-flash-lite-batch'
|
|
77
95
|
| 'google/gemini-3.1-flash-lite-image'
|
|
78
96
|
| 'google/gemini-3.1-pro-preview'
|
|
97
|
+
| 'google/gemini-3.1-pro-preview-batch'
|
|
79
98
|
| 'google/gemini-3.5-flash'
|
|
99
|
+
| 'google/gemini-3.5-flash-batch'
|
|
80
100
|
| 'google/gemini-3.5-flash-lite'
|
|
101
|
+
| 'google/gemini-3.5-flash-lite-batch'
|
|
81
102
|
| 'google/gemini-3.6-flash'
|
|
103
|
+
| 'google/gemini-3.6-flash-batch'
|
|
82
104
|
| 'google/gemini-3.7-flash'
|
|
105
|
+
| 'google/gemini-3.7-flash-batch'
|
|
83
106
|
| 'google/gemini-3.8-flash'
|
|
84
107
|
| 'google/gemini-4-argon'
|
|
85
108
|
| 'google/gemini-nano-banana-2.1'
|
|
@@ -94,10 +117,10 @@ export type GatewayModelId =
|
|
|
94
117
|
| 'inclusionai/ling-3.0-flash-sante'
|
|
95
118
|
| 'inclusionai/ling-3.0-flash-vl'
|
|
96
119
|
| 'inclusionai/ling-3.1-flash'
|
|
97
|
-
| 'inclusionai/ling-3.1-flash-free'
|
|
98
120
|
| 'inference-net/schematron-v2-small'
|
|
99
121
|
| 'inference-net/schematron-v2-turbo'
|
|
100
122
|
| 'interfaze/interfaze-beta'
|
|
123
|
+
| 'liquid/lfm2.5-24b-a2b'
|
|
101
124
|
| 'meituan/longcat-2.5-preview'
|
|
102
125
|
| 'meta/llama-3.1-70b'
|
|
103
126
|
| 'meta/llama-3.1-8b'
|
|
@@ -110,6 +133,7 @@ export type GatewayModelId =
|
|
|
110
133
|
| 'meta/muse-spark-1.2-contributor'
|
|
111
134
|
| 'meta/muse-spark-1.3'
|
|
112
135
|
| 'meta/muse-spark-1.3-contributor'
|
|
136
|
+
| 'meta/muse-wonder-1.0'
|
|
113
137
|
| 'minimax/minimax-m2'
|
|
114
138
|
| 'minimax/minimax-m2.1'
|
|
115
139
|
| 'minimax/minimax-m2.1-lightning'
|
|
@@ -141,60 +165,83 @@ export type GatewayModelId =
|
|
|
141
165
|
| 'nvidia/nemotron-3-super-120b-a12b'
|
|
142
166
|
| 'nvidia/nemotron-3-ultra-550b-a55b'
|
|
143
167
|
| 'nvidia/nemotron-3.5-lightning'
|
|
168
|
+
| 'nvidia/nemotron-3.5-lightning-free'
|
|
144
169
|
| 'nvidia/nemotron-nano-12b-v2-vl'
|
|
145
170
|
| 'nvidia/nemotron-nano-9b-v2'
|
|
146
171
|
| 'openai/gpt-3.5-turbo'
|
|
147
172
|
| 'openai/gpt-4-turbo'
|
|
148
173
|
| 'openai/gpt-4.1'
|
|
174
|
+
| 'openai/gpt-4.1-batch'
|
|
149
175
|
| 'openai/gpt-4.1-fast'
|
|
150
176
|
| 'openai/gpt-4.1-mini'
|
|
177
|
+
| 'openai/gpt-4.1-mini-batch'
|
|
151
178
|
| 'openai/gpt-4.1-mini-fast'
|
|
152
179
|
| 'openai/gpt-4.1-nano'
|
|
180
|
+
| 'openai/gpt-4.1-nano-batch'
|
|
153
181
|
| 'openai/gpt-4.1-nano-fast'
|
|
154
182
|
| 'openai/gpt-4o'
|
|
183
|
+
| 'openai/gpt-4o-batch'
|
|
155
184
|
| 'openai/gpt-4o-fast'
|
|
156
185
|
| 'openai/gpt-4o-mini'
|
|
186
|
+
| 'openai/gpt-4o-mini-batch'
|
|
157
187
|
| 'openai/gpt-4o-mini-fast'
|
|
158
188
|
| 'openai/gpt-5'
|
|
189
|
+
| 'openai/gpt-5-batch'
|
|
159
190
|
| 'openai/gpt-5-codex'
|
|
160
191
|
| 'openai/gpt-5-fast'
|
|
161
192
|
| 'openai/gpt-5-mini'
|
|
193
|
+
| 'openai/gpt-5-mini-batch'
|
|
162
194
|
| 'openai/gpt-5-mini-fast'
|
|
163
195
|
| 'openai/gpt-5-nano'
|
|
196
|
+
| 'openai/gpt-5-nano-batch'
|
|
164
197
|
| 'openai/gpt-5-pro'
|
|
198
|
+
| 'openai/gpt-5-pro-batch'
|
|
165
199
|
| 'openai/gpt-5.1-codex'
|
|
166
200
|
| 'openai/gpt-5.1-codex-max'
|
|
167
201
|
| 'openai/gpt-5.1-codex-mini'
|
|
168
202
|
| 'openai/gpt-5.1-thinking'
|
|
169
203
|
| 'openai/gpt-5.1-thinking-fast'
|
|
170
204
|
| 'openai/gpt-5.2'
|
|
205
|
+
| 'openai/gpt-5.2-batch'
|
|
171
206
|
| 'openai/gpt-5.2-codex'
|
|
172
207
|
| 'openai/gpt-5.2-fast'
|
|
173
208
|
| 'openai/gpt-5.2-pro'
|
|
174
209
|
| 'openai/gpt-5.3-codex'
|
|
175
210
|
| 'openai/gpt-5.3-codex-fast'
|
|
176
211
|
| 'openai/gpt-5.4'
|
|
212
|
+
| 'openai/gpt-5.4-batch'
|
|
177
213
|
| 'openai/gpt-5.4-fast'
|
|
178
214
|
| 'openai/gpt-5.4-mini'
|
|
215
|
+
| 'openai/gpt-5.4-mini-batch'
|
|
179
216
|
| 'openai/gpt-5.4-mini-fast'
|
|
180
217
|
| 'openai/gpt-5.4-nano'
|
|
218
|
+
| 'openai/gpt-5.4-nano-batch'
|
|
181
219
|
| 'openai/gpt-5.4-pro'
|
|
182
220
|
| 'openai/gpt-5.5'
|
|
221
|
+
| 'openai/gpt-5.5-batch'
|
|
183
222
|
| 'openai/gpt-5.5-fast'
|
|
184
223
|
| 'openai/gpt-5.5-pro'
|
|
224
|
+
| 'openai/gpt-5.5-pro-batch'
|
|
185
225
|
| 'openai/gpt-5.6-luna'
|
|
226
|
+
| 'openai/gpt-5.6-luna-batch'
|
|
186
227
|
| 'openai/gpt-5.6-luna-fast'
|
|
187
228
|
| 'openai/gpt-5.6-sol'
|
|
229
|
+
| 'openai/gpt-5.6-sol-batch'
|
|
188
230
|
| 'openai/gpt-5.6-sol-fast'
|
|
189
231
|
| 'openai/gpt-5.6-terra'
|
|
232
|
+
| 'openai/gpt-5.6-terra-batch'
|
|
190
233
|
| 'openai/gpt-5.6-terra-fast'
|
|
191
234
|
| 'openai/gpt-6-astra'
|
|
235
|
+
| 'openai/gpt-6-astra-batch'
|
|
192
236
|
| 'openai/gpt-6-astra-fast'
|
|
193
237
|
| 'openai/gpt-6-luna'
|
|
238
|
+
| 'openai/gpt-6-luna-batch'
|
|
194
239
|
| 'openai/gpt-6-luna-fast'
|
|
195
240
|
| 'openai/gpt-6-sol'
|
|
241
|
+
| 'openai/gpt-6-sol-batch'
|
|
196
242
|
| 'openai/gpt-6-sol-fast'
|
|
197
243
|
| 'openai/gpt-6.1-sol'
|
|
244
|
+
| 'openai/gpt-6.1-sol-batch'
|
|
198
245
|
| 'openai/gpt-6.1-sol-fast'
|
|
199
246
|
| 'openai/gpt-oss-120b'
|
|
200
247
|
| 'openai/gpt-oss-20b'
|
|
@@ -219,12 +266,16 @@ export type GatewayModelId =
|
|
|
219
266
|
| 'spacexai/grok-4.1-fast-non-reasoning'
|
|
220
267
|
| 'spacexai/grok-4.1-fast-reasoning'
|
|
221
268
|
| 'spacexai/grok-4.20-multi-agent'
|
|
269
|
+
| 'spacexai/grok-4.20-multi-agent-batch'
|
|
222
270
|
| 'spacexai/grok-4.20-multi-agent-beta'
|
|
223
271
|
| 'spacexai/grok-4.20-non-reasoning'
|
|
272
|
+
| 'spacexai/grok-4.20-non-reasoning-batch'
|
|
224
273
|
| 'spacexai/grok-4.20-non-reasoning-beta'
|
|
225
274
|
| 'spacexai/grok-4.20-reasoning'
|
|
275
|
+
| 'spacexai/grok-4.20-reasoning-batch'
|
|
226
276
|
| 'spacexai/grok-4.20-reasoning-beta'
|
|
227
277
|
| 'spacexai/grok-4.3'
|
|
278
|
+
| 'spacexai/grok-4.3-batch'
|
|
228
279
|
| 'spacexai/grok-4.5'
|
|
229
280
|
| 'spacexai/grok-4.6'
|
|
230
281
|
| 'spacexai/grok-4.7'
|