Repository navigation
@ai-sdk/minimax@3.0.69
·
10 commits
to main
since this release
Patch Changes
-
61a315e: fix: map the top-level
reasoningoption consistently across providersProviders now resolve reasoning the same way:
- A provider-specific reasoning setting in
providerOptionsis sent unchanged. OpenAI no longer dropsproviderOptions.openai.reasoningEffortvalues that are not in its list for the model, and Fireworks no longer rewritesproviderOptions.fireworks.reasoningEffort. Fireworks also sends top-levelreasoningvalues directly instead of rounding them to'high'at most, except for model families known to reject'none'(GPT-OSS, GLM-5.3, Muse Spark) or'minimal'(Nemotron, Inkling). - Otherwise,
reasoningmaps to the closest level the model supports, rounding down, and rounds up only when there is no lower level. For example,'xhigh'now maps to'high'instead of'max'on Anthropic and Bedrock models withoutxhigheffort, and'medium'maps to'low'instead of'high'on DeepSeek, Kimi K3, and Mistral GLM-5.3 models. 'none'on a model that cannot disable reasoning maps to the model's lowest level with a compatibility warning, instead of being dropped or sending a request the API rejects. This affects GPT-6 models without'none', xAI grok-4.5 and later, Groq GPT-OSS, Kimi K3, Perplexity, QuiverAI, Bedrock OpenAIgpt-ossmodels, and Gemini 2.5 Pro (minimum thinking budget). Gemini 3 and Anthropic and Bedrockbetween_toolsmappings now emit the compatibility warning too.
mapReasoningToProviderEffortnow accepts anyreasoningvalue, returns an optionalproviderOptionsEffortunchanged, and rounds levels that are missing from the effort map to the closest supported level.mapReasoningToProviderBudgetmaps'none'to the minimum reasoning budget, always returns a budget, and uses the default percentage for levels missing frombudgetPercentages.OpenAICompatibleChatConfigadds an optionalmapReasoningfunction for mapping the top-levelreasoningoption. - A provider-specific reasoning setting in
-
Updated dependencies [61a315e]
- @ai-sdk/provider-utils@5.0.71
- @ai-sdk/anthropic@4.0.92