@ai-sdk/gateway 4.0.112 → 4.0.113

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/gateway
2
2
 
3
+ ## 4.0.113
4
+
5
+ ### Patch Changes
6
+
7
+ - 42a2895: chore(provider/gateway): update gateway model settings files
8
+
3
9
  ## 4.0.112
4
10
 
5
11
  ### 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
  /**
@@ -103,7 +103,7 @@ type GatewayEmbeddingModelId = 'alibaba/qwen3-embedding-0.6b' | 'alibaba/qwen3-e
103
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 & {});
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-3-haiku' | 'anthropic/claude-fable-5' | 'anthropic/claude-fable-5.1' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-haiku-5.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' | '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' | 'fireworks/ember-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.6-flash' | 'google/gemini-3.7-flash' | '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' | 'inclusionai/ling-3.1-flash-free' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | '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-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-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-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-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-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' | '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 & {});
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' | 'inclusionai/ling-3.1-flash-free' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | '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-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
  /**
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.112";
3053
+ const VERSION = "4.0.113";
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.112",
4
+ "version": "4.0.113",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "sideEffects": false,
@@ -4,5 +4,6 @@ export type GatewayDecisionModelId =
4
4
  | 'liquid/d1'
5
5
  | 'microsoft/microsoft-decision-1'
6
6
  | 'openai/gpt-6-luna-decisions'
7
+ | 'scaledown/scaledown-classify-1'
7
8
  | 'typesafe-ai/jev'
8
9
  | (string & {});
@@ -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-opus-4'
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'
@@ -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'
@@ -146,55 +170,77 @@ export type GatewayModelId =
146
170
  | 'openai/gpt-3.5-turbo'
147
171
  | 'openai/gpt-4-turbo'
148
172
  | 'openai/gpt-4.1'
173
+ | 'openai/gpt-4.1-batch'
149
174
  | 'openai/gpt-4.1-fast'
150
175
  | 'openai/gpt-4.1-mini'
176
+ | 'openai/gpt-4.1-mini-batch'
151
177
  | 'openai/gpt-4.1-mini-fast'
152
178
  | 'openai/gpt-4.1-nano'
179
+ | 'openai/gpt-4.1-nano-batch'
153
180
  | 'openai/gpt-4.1-nano-fast'
154
181
  | 'openai/gpt-4o'
182
+ | 'openai/gpt-4o-batch'
155
183
  | 'openai/gpt-4o-fast'
156
184
  | 'openai/gpt-4o-mini'
185
+ | 'openai/gpt-4o-mini-batch'
157
186
  | 'openai/gpt-4o-mini-fast'
158
187
  | 'openai/gpt-5'
188
+ | 'openai/gpt-5-batch'
159
189
  | 'openai/gpt-5-codex'
160
190
  | 'openai/gpt-5-fast'
161
191
  | 'openai/gpt-5-mini'
192
+ | 'openai/gpt-5-mini-batch'
162
193
  | 'openai/gpt-5-mini-fast'
163
194
  | 'openai/gpt-5-nano'
195
+ | 'openai/gpt-5-nano-batch'
164
196
  | 'openai/gpt-5-pro'
197
+ | 'openai/gpt-5-pro-batch'
165
198
  | 'openai/gpt-5.1-codex'
166
199
  | 'openai/gpt-5.1-codex-max'
167
200
  | 'openai/gpt-5.1-codex-mini'
168
201
  | 'openai/gpt-5.1-thinking'
169
202
  | 'openai/gpt-5.1-thinking-fast'
170
203
  | 'openai/gpt-5.2'
204
+ | 'openai/gpt-5.2-batch'
171
205
  | 'openai/gpt-5.2-codex'
172
206
  | 'openai/gpt-5.2-fast'
173
207
  | 'openai/gpt-5.2-pro'
174
208
  | 'openai/gpt-5.3-codex'
175
209
  | 'openai/gpt-5.3-codex-fast'
176
210
  | 'openai/gpt-5.4'
211
+ | 'openai/gpt-5.4-batch'
177
212
  | 'openai/gpt-5.4-fast'
178
213
  | 'openai/gpt-5.4-mini'
214
+ | 'openai/gpt-5.4-mini-batch'
179
215
  | 'openai/gpt-5.4-mini-fast'
180
216
  | 'openai/gpt-5.4-nano'
217
+ | 'openai/gpt-5.4-nano-batch'
181
218
  | 'openai/gpt-5.4-pro'
182
219
  | 'openai/gpt-5.5'
220
+ | 'openai/gpt-5.5-batch'
183
221
  | 'openai/gpt-5.5-fast'
184
222
  | 'openai/gpt-5.5-pro'
223
+ | 'openai/gpt-5.5-pro-batch'
185
224
  | 'openai/gpt-5.6-luna'
225
+ | 'openai/gpt-5.6-luna-batch'
186
226
  | 'openai/gpt-5.6-luna-fast'
187
227
  | 'openai/gpt-5.6-sol'
228
+ | 'openai/gpt-5.6-sol-batch'
188
229
  | 'openai/gpt-5.6-sol-fast'
189
230
  | 'openai/gpt-5.6-terra'
231
+ | 'openai/gpt-5.6-terra-batch'
190
232
  | 'openai/gpt-5.6-terra-fast'
191
233
  | 'openai/gpt-6-astra'
234
+ | 'openai/gpt-6-astra-batch'
192
235
  | 'openai/gpt-6-astra-fast'
193
236
  | 'openai/gpt-6-luna'
237
+ | 'openai/gpt-6-luna-batch'
194
238
  | 'openai/gpt-6-luna-fast'
195
239
  | 'openai/gpt-6-sol'
240
+ | 'openai/gpt-6-sol-batch'
196
241
  | 'openai/gpt-6-sol-fast'
197
242
  | 'openai/gpt-6.1-sol'
243
+ | 'openai/gpt-6.1-sol-batch'
198
244
  | 'openai/gpt-6.1-sol-fast'
199
245
  | 'openai/gpt-oss-120b'
200
246
  | 'openai/gpt-oss-20b'
@@ -219,12 +265,16 @@ export type GatewayModelId =
219
265
  | 'spacexai/grok-4.1-fast-non-reasoning'
220
266
  | 'spacexai/grok-4.1-fast-reasoning'
221
267
  | 'spacexai/grok-4.20-multi-agent'
268
+ | 'spacexai/grok-4.20-multi-agent-batch'
222
269
  | 'spacexai/grok-4.20-multi-agent-beta'
223
270
  | 'spacexai/grok-4.20-non-reasoning'
271
+ | 'spacexai/grok-4.20-non-reasoning-batch'
224
272
  | 'spacexai/grok-4.20-non-reasoning-beta'
225
273
  | 'spacexai/grok-4.20-reasoning'
274
+ | 'spacexai/grok-4.20-reasoning-batch'
226
275
  | 'spacexai/grok-4.20-reasoning-beta'
227
276
  | 'spacexai/grok-4.3'
277
+ | 'spacexai/grok-4.3-batch'
228
278
  | 'spacexai/grok-4.5'
229
279
  | 'spacexai/grok-4.6'
230
280
  | 'spacexai/grok-4.7'