Patch Changes
-
9f108f8: close string values in tool-call input streamed with
streamFunctionCallArgumentson their final chunk -
b1bcea1: Add videoMetadata support for file parts. Pass startOffset, endOffset, and fps through per-file providerOptions to control video clipping and frame rate with the Google and Google Vertex providers.
-
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