@mastra/fastembed 1.3.6-alpha.1 → 1.3.7-alpha.0
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/_types/{@internal_ai-sdk-v5 → @internal_ai-sdk-v5@0.0.95}/dist/index.d.ts +1 -1
- package/dist/_types/{@internal_ai-v6 → @internal_ai-v6@0.0.95}/dist/index.d.ts +98 -17
- package/dist/index.cjs +48 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +48 -6
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- /package/dist/_types/{@internal_ai-sdk-v4 → @internal_ai-sdk-v4@0.0.95}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_ai-sdk-v4 → @internal_ai-sdk-v4@0.0.95}/package.json +0 -0
- /package/dist/_types/{@internal_ai-sdk-v5 → @internal_ai-sdk-v5@0.0.95}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v6 → @internal_ai-v6@0.0.95}/package.json +0 -0
|
@@ -2421,7 +2421,7 @@ declare interface GatewayLanguageModelEntry {
|
|
|
2421
2421
|
|
|
2422
2422
|
declare type GatewayLanguageModelSpecification = Pick<LanguageModelV2, 'specificationVersion' | 'provider' | 'modelId'>;
|
|
2423
2423
|
|
|
2424
|
-
export declare 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.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-1017' | 'deepseek/deepseek-v4.1-flash-1017-fast' | 'deepseek/deepseek-v4.1-flash-fast' | 'elorian/glimpse' | '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-3' | '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-spark-open' | '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' | 'minimax/minimax-m3.1-flash' | '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' | 'moonshotai/kimi-k3.1-pro' | 'moonshotai/kimi-k3.1-pro-highspeed' | '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-3.5-super-vl' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | '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-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' | 'perplexity/sonar' | 'poolside/laguna-s-2.1' | 'poolside/laguna-s-2.1-free' | 'quiverai/arrow-2' | 'quiverai/arrow-2-telos' | 'reflection/beam' | 'reflection/beam-free' | 'sakana/fugu-max' | 'sakana/fugu-ultra' | 'sakana/fugu-ultra-v2' | 'sakana/namazu' | 'scaledown/scaledown-extract-1' | 'scaledown/scaledown-summarize-1' | '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 & {});
|
|
2424
|
+
export declare 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.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-1017' | 'deepseek/deepseek-v4.1-flash-1017-fast' | 'deepseek/deepseek-v4.1-flash-fast' | 'elorian/glimpse' | '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-3' | '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-1019' | '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-spark-open' | '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' | 'minimax/minimax-m3.1-flash' | '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' | 'moonshotai/kimi-k3.1-pro' | 'moonshotai/kimi-k3.1-pro-highspeed' | '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-3.5-super-vl' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | '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-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-6.1-terra' | 'openai/gpt-6.1-terra-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' | 'particle/particle-1' | 'perplexity/sonar' | 'poolside/laguna-s-2.1' | 'poolside/laguna-s-2.1-free' | 'quiverai/arrow-2' | 'quiverai/arrow-2-telos' | 'reflection/beam' | 'reflection/beam-free' | 'sakana/fugu-max' | 'sakana/fugu-ultra' | 'sakana/fugu-ultra-v2' | 'sakana/namazu' | 'scaledown/scaledown-extract-1' | 'scaledown/scaledown-summarize-1' | '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 & {});
|
|
2425
2425
|
|
|
2426
2426
|
declare interface GatewayProvider extends ProviderV2 {
|
|
2427
2427
|
(modelId: GatewayModelId): LanguageModelV2;
|
|
@@ -326,10 +326,12 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
326
326
|
getRuntimeEnvironmentUserAgent,
|
|
327
327
|
injectJsonInstructionIntoMessages,
|
|
328
328
|
isAbortError,
|
|
329
|
+
isArrayBuffer,
|
|
329
330
|
isBrowserRuntime,
|
|
330
331
|
isNonNullable,
|
|
331
332
|
isParsableJson,
|
|
332
333
|
isSameOrigin,
|
|
334
|
+
isUint8Array,
|
|
333
335
|
isUrlSupported,
|
|
334
336
|
jsonSchema,
|
|
335
337
|
lazySchema,
|
|
@@ -351,6 +353,7 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
351
353
|
safeParseJSON,
|
|
352
354
|
safeValidateTypes,
|
|
353
355
|
secureJsonParse,
|
|
356
|
+
stringifyWithBigIntAndCycles,
|
|
354
357
|
stripFileExtension,
|
|
355
358
|
tool,
|
|
356
359
|
validateDownloadUrl,
|
|
@@ -1470,6 +1473,66 @@ export declare type DeepPartial<T> = T extends FlexibleSchema ? DeepPartialInter
|
|
|
1470
1473
|
|
|
1471
1474
|
declare type DeepPartialInternal<T> = T extends null | undefined | string | number | boolean | symbol | bigint | void | Date | RegExp | ((...arguments_: any[]) => unknown) | (new (...arguments_: any[]) => unknown) ? T : T extends Map<infer KeyType, infer ValueType> ? PartialMap<KeyType, ValueType> : T extends Set<infer ItemType> ? PartialSet<ItemType> : T extends ReadonlyMap<infer KeyType, infer ValueType> ? PartialReadonlyMap<KeyType, ValueType> : T extends ReadonlySet<infer ItemType> ? PartialReadonlySet<ItemType> : T extends object ? T extends ReadonlyArray<infer ItemType> ? ItemType[] extends T ? readonly ItemType[] extends T ? ReadonlyArray<DeepPartialInternal<ItemType | undefined>> : Array<DeepPartialInternal<ItemType | undefined>> : PartialObject<T> : PartialObject<T> : unknown;
|
|
1472
1475
|
|
|
1476
|
+
declare interface DeepSeekFetchConfig {
|
|
1477
|
+
/** Pin the target URL instead of allowing the model to choose it. */
|
|
1478
|
+
url?: string;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
declare interface DeepSeekFetchInput {
|
|
1482
|
+
url: string;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
declare type DeepSeekFetchOutput = DeepSeekFetchResponse | GatewayToolError;
|
|
1486
|
+
|
|
1487
|
+
declare interface DeepSeekFetchResponse {
|
|
1488
|
+
title?: string | null;
|
|
1489
|
+
/** Page content as Markdown. */
|
|
1490
|
+
content: string;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
declare const deepseekFetchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<DeepSeekFetchInput, DeepSeekFetchOutput, DeepSeekFetchConfig>;
|
|
1494
|
+
|
|
1495
|
+
declare interface DeepSeekSearchConfig {
|
|
1496
|
+
/** Pin the query instead of allowing the model to choose it. */
|
|
1497
|
+
query?: string;
|
|
1498
|
+
/** Maximum number of results, 1–50 (default: 10). */
|
|
1499
|
+
count?: number;
|
|
1500
|
+
/** Include available page content (default: false). */
|
|
1501
|
+
needContent?: boolean;
|
|
1502
|
+
/** Original question, 1–128 Unicode characters; null means absent. */
|
|
1503
|
+
oriQuestion?: string | null;
|
|
1504
|
+
/** Developer-configured IP address for result localization. */
|
|
1505
|
+
localization?: string;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
declare interface DeepSeekSearchInput {
|
|
1509
|
+
query: string;
|
|
1510
|
+
count?: number;
|
|
1511
|
+
need_content?: boolean;
|
|
1512
|
+
ori_question?: string | null;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
declare type DeepSeekSearchOutput = DeepSeekSearchResponse | GatewayToolError;
|
|
1516
|
+
|
|
1517
|
+
declare interface DeepSeekSearchResponse {
|
|
1518
|
+
results: DeepSeekSearchResult[];
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
declare interface DeepSeekSearchResult {
|
|
1522
|
+
authority?: number | null;
|
|
1523
|
+
content?: string | null;
|
|
1524
|
+
date?: string | null;
|
|
1525
|
+
rerank_score?: number | null;
|
|
1526
|
+
site_icon?: string | null;
|
|
1527
|
+
site_name?: string | null;
|
|
1528
|
+
snippet?: string | null;
|
|
1529
|
+
summary?: string | null;
|
|
1530
|
+
title?: string | null;
|
|
1531
|
+
url?: string | null;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
declare const deepseekSearchToolFactory: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<DeepSeekSearchInput, DeepSeekSearchOutput, DeepSeekSearchConfig>;
|
|
1535
|
+
|
|
1473
1536
|
/**
|
|
1474
1537
|
* Default maximum download size: 2 GiB.
|
|
1475
1538
|
*
|
|
@@ -1511,7 +1574,7 @@ export declare class DefaultGeneratedFile implements GeneratedFile {
|
|
|
1511
1574
|
private uint8ArrayData;
|
|
1512
1575
|
readonly mediaType: string;
|
|
1513
1576
|
constructor({ data, mediaType, }: {
|
|
1514
|
-
data: string | Uint8Array;
|
|
1577
|
+
data: string | Uint8Array | ArrayBuffer;
|
|
1515
1578
|
mediaType: string;
|
|
1516
1579
|
});
|
|
1517
1580
|
get base64(): string;
|
|
@@ -3302,7 +3365,7 @@ declare interface GatewayLanguageModelEntry {
|
|
|
3302
3365
|
|
|
3303
3366
|
declare type GatewayLanguageModelSpecification = Pick<LanguageModelV3, 'specificationVersion' | 'provider' | 'modelId'>;
|
|
3304
3367
|
|
|
3305
|
-
export declare 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.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' | '
|
|
3368
|
+
export declare 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.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' | '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-1017' | 'deepseek/deepseek-v4.1-flash-1017-fast' | 'deepseek/deepseek-v4.1-flash-fast' | 'elorian/glimpse' | '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-3' | '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-1019' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | 'liquid/lfm2.5-24b-a2b' | 'meituan/longcat-2.5' | '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-spark-open' | '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' | 'minimax/minimax-m3.1-flash' | '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' | 'moonshotai/kimi-k3.1-pro' | 'moonshotai/kimi-k3.1-pro-highspeed' | '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-3.5-super-vl' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | '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-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-6.1-terra' | 'openai/gpt-6.1-terra-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' | 'particle/particle-1' | 'perplexity/sonar' | 'poolside/laguna-s-2.1' | 'quiverai/arrow-2' | 'quiverai/arrow-2-telos' | 'reflection/beam' | 'reflection/beam-free' | 'sakana/fugu-max' | 'sakana/fugu-ultra' | 'sakana/fugu-ultra-v2' | 'sakana/namazu' | 'scaledown/scaledown-extract-1' | 'scaledown/scaledown-summarize-1' | '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-5.3-flashx-legal' | 'zai/glm-5v-turbo' | (string & {});
|
|
3306
3369
|
|
|
3307
3370
|
declare interface GatewayProvider extends ProviderV3 {
|
|
3308
3371
|
(modelId: GatewayModelId): LanguageModelV3;
|
|
@@ -3416,7 +3479,7 @@ declare interface GatewayProviderSettings {
|
|
|
3416
3479
|
|
|
3417
3480
|
declare type GatewayRerankingModelId = 'cohere/rerank-v3.5' | 'cohere/rerank-v4-fast' | 'cohere/rerank-v4-pro' | 'cohere/rerank-v5-fast' | 'cohere/rerank-v5-pro' | 'voyage/rerank-2.5' | 'voyage/rerank-2.5-lite' | 'voyage/rerank-3' | 'voyage/rerank-3-lite' | (string & {});
|
|
3418
3481
|
|
|
3419
|
-
declare 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' | 'mistral/voxtral-mini-tts-3' | 'openai/tts-1' | 'openai/tts-1-hd' | 'spacexai/grok-tts' | (string & {});
|
|
3482
|
+
declare type GatewaySpeechModelId = 'elevenlabs/eleven-flash-v2' | 'elevenlabs/eleven-flash-v2.5' | 'elevenlabs/eleven-multilingual-v2' | 'elevenlabs/eleven-v3' | 'elevenlabs/eleven-v3-conversational' | 'elevenlabs/eleven-v4' | 'elevenlabs/eleven-v4-turbo' | 'elevenlabs/music-v2' | 'elevenlabs/music-v2.5' | 'elevenlabs/sound-effects-v2' | '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' | 'mistral/voxtral-mini-tts-3' | 'openai/tts-1' | 'openai/tts-1-hd' | 'spacexai/grok-tts' | (string & {});
|
|
3420
3483
|
|
|
3421
3484
|
declare interface GatewaySpendReportParams {
|
|
3422
3485
|
/** Start date in YYYY-MM-DD format (inclusive) */
|
|
@@ -3476,6 +3539,14 @@ declare interface GatewaySpendReportRow {
|
|
|
3476
3539
|
requestCount?: number;
|
|
3477
3540
|
}
|
|
3478
3541
|
|
|
3542
|
+
declare interface GatewayToolError {
|
|
3543
|
+
error: 'api_error' | 'configuration_error' | 'execution_error' | 'gateway_rate_limit' | 'invalid_input' | 'rate_limit' | 'timeout' | 'unknown' | 'unknown_tool';
|
|
3544
|
+
message: string;
|
|
3545
|
+
statusCode?: number;
|
|
3546
|
+
retryAfter?: string;
|
|
3547
|
+
statusText?: string;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3479
3550
|
/**
|
|
3480
3551
|
* Gateway-specific provider-defined tools.
|
|
3481
3552
|
*/
|
|
@@ -3494,6 +3565,16 @@ declare const gatewayTools: {
|
|
|
3494
3565
|
* a browser session.
|
|
3495
3566
|
*/
|
|
3496
3567
|
browserbaseSearch: (config?: BrowserbaseSearchConfig) => ReturnType<typeof browserbaseSearchToolFactory>;
|
|
3568
|
+
/**
|
|
3569
|
+
* Fetch a page as Markdown through DeepSeek's standalone Fetch API.
|
|
3570
|
+
* Executed by AI Gateway for any model, separate from native model web search.
|
|
3571
|
+
*/
|
|
3572
|
+
deepseekFetch: (config?: DeepSeekFetchConfig) => ReturnType<typeof deepseekFetchToolFactory>;
|
|
3573
|
+
/**
|
|
3574
|
+
* Search the web through DeepSeek's standalone Search API.
|
|
3575
|
+
* Executed by AI Gateway for any model, separate from native model web search.
|
|
3576
|
+
*/
|
|
3577
|
+
deepseekSearch: (config?: DeepSeekSearchConfig) => ReturnType<typeof deepseekSearchToolFactory>;
|
|
3497
3578
|
/**
|
|
3498
3579
|
* Search the web using Exa for current information and token-efficient
|
|
3499
3580
|
* excerpts optimized for agent workflows.
|
|
@@ -3530,7 +3611,7 @@ declare const gatewayTools: {
|
|
|
3530
3611
|
takoSearch: (config?: TakoSearchConfig) => ReturnType<typeof takoSearchToolFactory>;
|
|
3531
3612
|
};
|
|
3532
3613
|
|
|
3533
|
-
declare 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' | 'mistral/voxtral-mini-transcribe-3' | 'mistral/voxtral-small-transcribe-3' | 'openai/gpt-4o-mini-transcribe' | 'openai/gpt-4o-transcribe' | 'openai/gpt-realtime-whisper' | 'openai/whisper-1' | 'spacexai/grok-stt' | (string & {});
|
|
3614
|
+
declare type GatewayTranscriptionModelId = 'elevenlabs/scribe-v2' | 'elevenlabs/scribe-v2-realtime' | 'fish-audio/transcribe-1' | 'google/gemini-3.5-transcribe' | 'google/gemini-3.5-transcribe-live' | 'microsoft/mai-transcribe-2' | 'microsoft/mai-transcribe-2-streaming' | 'mistral/voxtral-mini-transcribe-3' | 'mistral/voxtral-small-transcribe-3' | 'openai/gpt-4o-mini-transcribe' | 'openai/gpt-4o-transcribe' | 'openai/gpt-live-transcribe' | 'openai/gpt-realtime-whisper' | 'openai/gpt-transcribe' | 'openai/whisper-1' | 'spacexai/grok-stt' | (string & {});
|
|
3534
3615
|
|
|
3535
3616
|
declare type GatewayVideoModelId = 'alibaba/wan-v2.5-t2v-preview' | 'alibaba/wan-v2.6-i2v' | 'alibaba/wan-v2.6-i2v-flash' | 'alibaba/wan-v2.6-r2v' | 'alibaba/wan-v2.6-r2v-flash' | 'alibaba/wan-v2.6-t2v' | 'alibaba/wan-v2.7-r2v' | 'alibaba/wan-v2.7-t2v' | 'alibaba/wan-v3.0-video' | 'alibaba/wan-v3.0-video-prime' | 'bfl/flux-3-video' | 'bytedance/seedance-2.0' | 'bytedance/seedance-2.0-fast' | 'bytedance/seedance-2.0-mini' | 'bytedance/seedance-2.5' | 'bytedance/seedance-v1.0-pro' | 'bytedance/seedance-v1.0-pro-fast' | 'bytedance/seedance-v1.5-pro' | 'google/veo-3.0-fast-generate-001' | 'google/veo-3.0-generate-001' | 'google/veo-3.1-fast-generate-001' | 'google/veo-3.1-generate-001' | 'google/veo-3.1-lite-generate-001' | 'heygen/heygen-video-1' | 'klingai/kling-v2.5-turbo-i2v' | 'klingai/kling-v2.5-turbo-t2v' | 'klingai/kling-v2.6-i2v' | 'klingai/kling-v2.6-motion-control' | 'klingai/kling-v2.6-t2v' | 'klingai/kling-v3.0-i2v' | 'klingai/kling-v3.0-motion-control' | 'klingai/kling-v3.0-t2v' | 'minimax/minimax-h3' | 'minimax/minimax-h3-max' | 'spacexai/grok-imagine-video' | 'spacexai/grok-imagine-video-1.5' | 'spacexai/grok-imagine-video-1.5-lite' | 'topaz/proteus' | 'topaz/starlight-precise-2.6' | (string & {});
|
|
3536
3617
|
|
|
@@ -5148,6 +5229,8 @@ export declare class InvalidToolInputError extends AISDKError {
|
|
|
5148
5229
|
|
|
5149
5230
|
declare function isAbortError(error: unknown): error is Error;
|
|
5150
5231
|
|
|
5232
|
+
declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
|
|
5233
|
+
|
|
5151
5234
|
/**
|
|
5152
5235
|
* Returns `true` when running in a browser.
|
|
5153
5236
|
*
|
|
@@ -5242,6 +5325,8 @@ export declare const isToolOrDynamicToolUIPart: typeof isToolUIPart;
|
|
|
5242
5325
|
*/
|
|
5243
5326
|
export declare function isToolUIPart<TOOLS extends UITools>(part: UIMessagePart<UIDataTypes, TOOLS>): part is ToolUIPart<TOOLS> | DynamicToolUIPart;
|
|
5244
5327
|
|
|
5328
|
+
declare function isUint8Array(value: unknown): value is Uint8Array;
|
|
5329
|
+
|
|
5245
5330
|
/**
|
|
5246
5331
|
* Checks if the given URL is supported natively by the model.
|
|
5247
5332
|
*
|
|
@@ -7982,14 +8067,7 @@ declare interface ParallelSearchConfig {
|
|
|
7982
8067
|
location?: string;
|
|
7983
8068
|
}
|
|
7984
8069
|
|
|
7985
|
-
declare
|
|
7986
|
-
/** Error type */
|
|
7987
|
-
error: 'api_error' | 'configuration_error' | 'execution_error' | 'gateway_rate_limit' | 'invalid_input' | 'rate_limit' | 'timeout' | 'unknown' | 'unknown_tool';
|
|
7988
|
-
/** HTTP status code if applicable */
|
|
7989
|
-
statusCode?: number;
|
|
7990
|
-
/** Human-readable error message */
|
|
7991
|
-
message: string;
|
|
7992
|
-
}
|
|
8070
|
+
declare type ParallelSearchError = GatewayToolError;
|
|
7993
8071
|
|
|
7994
8072
|
declare interface ParallelSearchExcerpts {
|
|
7995
8073
|
/**
|
|
@@ -11469,6 +11547,13 @@ export declare type StreamTextTransform<TOOLS extends ToolSet> = (options: {
|
|
|
11469
11547
|
stopStream: () => void;
|
|
11470
11548
|
}) => TransformStream<TextStreamPart<TOOLS>, TextStreamPart<TOOLS>>;
|
|
11471
11549
|
|
|
11550
|
+
/**
|
|
11551
|
+
* Serializes a value as JSON, representing BigInt values as decimal strings and
|
|
11552
|
+
* ancestor cycles as "[Circular]". Reused objects, toJSON methods, and other JSON
|
|
11553
|
+
* serialization behavior are preserved. Getters and toJSON methods may throw.
|
|
11554
|
+
*/
|
|
11555
|
+
declare function stringifyWithBigIntAndCycles(value: unknown): string;
|
|
11556
|
+
|
|
11472
11557
|
/**
|
|
11473
11558
|
* Strips file extension segments from a filename.
|
|
11474
11559
|
*
|
|
@@ -11719,11 +11804,7 @@ declare interface TakoSearchConfig {
|
|
|
11719
11804
|
|
|
11720
11805
|
declare type TakoSearchEffort = 'deep' | 'fast' | 'instant';
|
|
11721
11806
|
|
|
11722
|
-
declare
|
|
11723
|
-
error: 'api_error' | 'configuration_error' | 'execution_error' | 'invalid_input' | 'rate_limit' | 'timeout' | 'unknown_tool';
|
|
11724
|
-
statusCode?: number;
|
|
11725
|
-
message: string;
|
|
11726
|
-
}
|
|
11807
|
+
declare type TakoSearchError = GatewayToolError;
|
|
11727
11808
|
|
|
11728
11809
|
declare interface TakoSearchInput {
|
|
11729
11810
|
query: string;
|
package/dist/index.cjs
CHANGED
|
@@ -9507,7 +9507,7 @@ ZodOptional.create;
|
|
|
9507
9507
|
ZodNullable.create;
|
|
9508
9508
|
ZodEffects.createWithPreprocess;
|
|
9509
9509
|
ZodPipeline.create;
|
|
9510
|
-
// ../_vendored/ai_v5/dist/dist-
|
|
9510
|
+
// ../_vendored/ai_v5/dist/dist-BYnbJEqC.js
|
|
9511
9511
|
var marker$1$6 = "vercel.ai.error";
|
|
9512
9512
|
var symbol$1$6 = Symbol.for(marker$1$6);
|
|
9513
9513
|
var _a$1$6;
|
|
@@ -10725,6 +10725,20 @@ function asSchema$2(schema) {
|
|
|
10725
10725
|
}) : isSchema$2(schema) ? schema : typeof schema === "function" ? schema() : zodSchema$2(schema);
|
|
10726
10726
|
}
|
|
10727
10727
|
var { btoa: btoa$3, atob: atob$5 } = globalThis;
|
|
10728
|
+
var typedArrayTag$1 = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag).get;
|
|
10729
|
+
var arrayBufferByteLength$1 = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
|
|
10730
|
+
function isUint8Array$1(value) {
|
|
10731
|
+
return ArrayBuffer.isView(value) && typedArrayTag$1.call(value) === "Uint8Array";
|
|
10732
|
+
}
|
|
10733
|
+
function isArrayBuffer$1(value) {
|
|
10734
|
+
if (typeof value !== "object" || value === null || !("byteLength" in value)) return false;
|
|
10735
|
+
try {
|
|
10736
|
+
arrayBufferByteLength$1.call(value);
|
|
10737
|
+
return true;
|
|
10738
|
+
} catch (e) {
|
|
10739
|
+
return false;
|
|
10740
|
+
}
|
|
10741
|
+
}
|
|
10728
10742
|
// ../_vendored/ai_v5/dist/index.js
|
|
10729
10743
|
/** only globals that common to node and browsers are allowed */
|
|
10730
10744
|
var _globalThis$1 = typeof globalThis === "object" ? globalThis : global;
|
|
@@ -11542,8 +11556,8 @@ var NoObjectGeneratedError$2 = class extends AISDKError$2 {
|
|
|
11542
11556
|
_a7$4 = symbol7$4;
|
|
11543
11557
|
var dataContentSchema$2 = union([
|
|
11544
11558
|
string(),
|
|
11545
|
-
|
|
11546
|
-
|
|
11559
|
+
custom(isUint8Array$1, { message: "Must be a Uint8Array" }),
|
|
11560
|
+
custom(isArrayBuffer$1, { message: "Must be an ArrayBuffer" }),
|
|
11547
11561
|
custom((value) => {
|
|
11548
11562
|
var _a17, _b;
|
|
11549
11563
|
return (_b = (_a17 = globalThis.Buffer) == null ? void 0 : _a17.isBuffer(value)) != null ? _b : false;
|
|
@@ -15302,7 +15316,7 @@ function trimStartOfStream() {
|
|
|
15302
15316
|
return text2;
|
|
15303
15317
|
};
|
|
15304
15318
|
}
|
|
15305
|
-
// ../_vendored/ai_v6/dist/dist-
|
|
15319
|
+
// ../_vendored/ai_v6/dist/dist-DwNW4Hp7.js
|
|
15306
15320
|
var marker$1 = "vercel.ai.error";
|
|
15307
15321
|
var symbol$1 = Symbol.for(marker$1);
|
|
15308
15322
|
var _a$1;
|
|
@@ -15452,6 +15466,20 @@ Error message: ${getErrorMessage$1(cause)}`,
|
|
|
15452
15466
|
};
|
|
15453
15467
|
TransformStream;
|
|
15454
15468
|
var { btoa: btoa$1, atob: atob$2 } = globalThis;
|
|
15469
|
+
var typedArrayTag = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag).get;
|
|
15470
|
+
var arrayBufferByteLength = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
|
|
15471
|
+
function isUint8Array(value) {
|
|
15472
|
+
return ArrayBuffer.isView(value) && typedArrayTag.call(value) === "Uint8Array";
|
|
15473
|
+
}
|
|
15474
|
+
function isArrayBuffer(value) {
|
|
15475
|
+
if (typeof value !== "object" || value === null || !("byteLength" in value)) return false;
|
|
15476
|
+
try {
|
|
15477
|
+
arrayBufferByteLength.call(value);
|
|
15478
|
+
return true;
|
|
15479
|
+
} catch (e) {
|
|
15480
|
+
return false;
|
|
15481
|
+
}
|
|
15482
|
+
}
|
|
15455
15483
|
var createIdGenerator = ({ prefix, size = 16, alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", separator = "-" } = {}) => {
|
|
15456
15484
|
const generator = () => {
|
|
15457
15485
|
const alphabetLength = alphabet.length;
|
|
@@ -17508,8 +17536,8 @@ function asTranscriptionModelV3(model) {
|
|
|
17508
17536
|
}
|
|
17509
17537
|
var dataContentSchema = union([
|
|
17510
17538
|
string(),
|
|
17511
|
-
|
|
17512
|
-
|
|
17539
|
+
custom(isUint8Array, { message: "Must be a Uint8Array" }),
|
|
17540
|
+
custom(isArrayBuffer, { message: "Must be an ArrayBuffer" }),
|
|
17513
17541
|
custom((value) => {
|
|
17514
17542
|
var _a23, _b;
|
|
17515
17543
|
return (_b = (_a23 = globalThis.Buffer) == null ? void 0 : _a23.isBuffer(value)) != null ? _b : false;
|
|
@@ -18799,6 +18827,12 @@ async function generateEmbeddingsWithWarnings(values, modelType, prefix) {
|
|
|
18799
18827
|
warnings
|
|
18800
18828
|
};
|
|
18801
18829
|
}
|
|
18830
|
+
/**
|
|
18831
|
+
* The token window of every fastembed model here. Set as `maxInputTokens` on each model object:
|
|
18832
|
+
* Mastra's semantic recall reads it to size message chunks, so long messages are split instead of
|
|
18833
|
+
* having everything past the window silently dropped from the embedding.
|
|
18834
|
+
*/
|
|
18835
|
+
const FASTEMBED_INPUT_LIMIT = { maxInputTokens: 512 };
|
|
18802
18836
|
const fastEmbedLegacyProvider = customProvider$1({ textEmbeddingModels: {
|
|
18803
18837
|
"bge-small-en-v1.5": {
|
|
18804
18838
|
specificationVersion: "v1",
|
|
@@ -18806,6 +18840,7 @@ const fastEmbedLegacyProvider = customProvider$1({ textEmbeddingModels: {
|
|
|
18806
18840
|
modelId: "bge-small-en-v1.5",
|
|
18807
18841
|
maxEmbeddingsPerCall: 256,
|
|
18808
18842
|
supportsParallelCalls: true,
|
|
18843
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18809
18844
|
async doEmbed({ values }) {
|
|
18810
18845
|
return generateEmbeddings(values, "BGESmallENV15");
|
|
18811
18846
|
}
|
|
@@ -18816,6 +18851,7 @@ const fastEmbedLegacyProvider = customProvider$1({ textEmbeddingModels: {
|
|
|
18816
18851
|
modelId: "bge-base-en-v1.5",
|
|
18817
18852
|
maxEmbeddingsPerCall: 256,
|
|
18818
18853
|
supportsParallelCalls: true,
|
|
18854
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18819
18855
|
async doEmbed({ values }) {
|
|
18820
18856
|
return generateEmbeddings(values, "BGEBaseENV15");
|
|
18821
18857
|
}
|
|
@@ -18828,6 +18864,7 @@ const fastEmbedProviderV2 = customProvider$2({ textEmbeddingModels: {
|
|
|
18828
18864
|
modelId: "bge-small-en-v1.5",
|
|
18829
18865
|
maxEmbeddingsPerCall: 256,
|
|
18830
18866
|
supportsParallelCalls: true,
|
|
18867
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18831
18868
|
async doEmbed({ values }) {
|
|
18832
18869
|
return generateEmbeddings(values, "BGESmallENV15");
|
|
18833
18870
|
}
|
|
@@ -18838,6 +18875,7 @@ const fastEmbedProviderV2 = customProvider$2({ textEmbeddingModels: {
|
|
|
18838
18875
|
modelId: "bge-base-en-v1.5",
|
|
18839
18876
|
maxEmbeddingsPerCall: 256,
|
|
18840
18877
|
supportsParallelCalls: true,
|
|
18878
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18841
18879
|
async doEmbed({ values }) {
|
|
18842
18880
|
return generateEmbeddings(values, "BGEBaseENV15");
|
|
18843
18881
|
}
|
|
@@ -18850,6 +18888,7 @@ const fastEmbedProviderV3 = customProvider({ embeddingModels: {
|
|
|
18850
18888
|
modelId: "bge-small-en-v1.5",
|
|
18851
18889
|
maxEmbeddingsPerCall: 256,
|
|
18852
18890
|
supportsParallelCalls: true,
|
|
18891
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18853
18892
|
async doEmbed({ values }) {
|
|
18854
18893
|
return generateEmbeddingsWithWarnings(values, "BGESmallENV15");
|
|
18855
18894
|
}
|
|
@@ -18860,6 +18899,7 @@ const fastEmbedProviderV3 = customProvider({ embeddingModels: {
|
|
|
18860
18899
|
modelId: "bge-base-en-v1.5",
|
|
18861
18900
|
maxEmbeddingsPerCall: 256,
|
|
18862
18901
|
supportsParallelCalls: true,
|
|
18902
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18863
18903
|
async doEmbed({ values }) {
|
|
18864
18904
|
return generateEmbeddingsWithWarnings(values, "BGEBaseENV15");
|
|
18865
18905
|
}
|
|
@@ -18870,6 +18910,7 @@ const fastEmbedProviderV3 = customProvider({ embeddingModels: {
|
|
|
18870
18910
|
modelId: "multilingual-e5-large-query",
|
|
18871
18911
|
maxEmbeddingsPerCall: 256,
|
|
18872
18912
|
supportsParallelCalls: true,
|
|
18913
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18873
18914
|
async doEmbed({ values }) {
|
|
18874
18915
|
return generateEmbeddingsWithWarnings(values, "MLE5Large", "query");
|
|
18875
18916
|
}
|
|
@@ -18880,6 +18921,7 @@ const fastEmbedProviderV3 = customProvider({ embeddingModels: {
|
|
|
18880
18921
|
modelId: "multilingual-e5-large-passage",
|
|
18881
18922
|
maxEmbeddingsPerCall: 256,
|
|
18882
18923
|
supportsParallelCalls: true,
|
|
18924
|
+
...FASTEMBED_INPUT_LIMIT,
|
|
18883
18925
|
async doEmbed({ values }) {
|
|
18884
18926
|
return generateEmbeddingsWithWarnings(values, "MLE5Large", "passage");
|
|
18885
18927
|
}
|