build(deps-dev): bump @ai-sdk/anthropic from 4.0.88 to 4.0.94
Bumps @ai-sdk/anthropic from 4.0.88 to 4.0.94.
Changelog
Sourced from @ai-sdk/anthropic's changelog.
4.0.94
Patch Changes
- f4c5f1e: fix(anthropic): use native structured outputs for Claude models that reject forced tool use (Sonnet 5.5, Opus 5.5, Fable 5.1) even when the provider disables them by default, as Amazon Bedrock and Google Vertex do. Self-referencing schemas keep the JSON response tool. Also keep
definitionsand$defsnext to a top-level$refwhen sanitizing structured output schemas, so the reference still resolves.- e10aebb: fix(anthropic): when the JSON response tool is in use but the model answers in text without calling it (for example with manual thinking, where the forced tool choice is downgraded to
auto), return the final answer text instead of dropping it. Text before a tool call, result, or message continuation is still dropped.- b0d51fe: fix(anthropic): keep the JSON response tool for schemas that native structured outputs cannot represent when upgrading models that reject forced tool use. Schemas with open objects (maps, free-form objects) would otherwise come back as
{}, and schemas with more than 10 optional properties can be rejected as too complex.4.0.93
Patch Changes
- dcd2f8d: Introduce a model entry contract with named capability sections and request configuration. Consolidate the OpenAI and Anthropic model catalogs so existing request behavior and generated capability documentation use the same source of truth. Catalogs also declare the provider options each provider accepts and which models support them.
- Updated dependencies [7716e18]
- Updated dependencies [5c247e9]
- Updated dependencies [dcd2f8d]
4.0.92
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.Updated dependencies [61a315e]
@ai-sdk/provider-utils@5.0.714.0.91
Patch Changes
- 50da4c5: Fix workflow serialization of Anthropic models using API keys or synchronous auth tokens while preserving support for asynchronous token providers.
4.0.90
Patch Changes
- 63bf860: Support synchronous and asynchronous
authTokenproviders so applications can use refreshable credentials, including Anthropic workload identity federation helpers for inference. Resolve tokens before each request while preserving existing authentication headers and beta-header behavior.- Updated dependencies [57086ff]
- Updated dependencies [95348b3]
@ai-sdk/provider-utils@5.0.70
... (truncated)
Commits
028a025Version Packages (#24280)b0d51fefix(anthropic): keep the JSON response tool for schemas native structured out...e10aebbfix(anthropic): return the final text when the JSON response tool is never ca...f4c5f1efix(anthropic): use native structured outputs for forced-tool-rejecting model...9b603d3Version Packages (#24224)dcd2f8dfeat(openai): centralize model capabilities in a unified catalog (#24174)5c247e9feat(sandbox): add stat, listDirectory, and deleteFile to SandboxSession (#24...d1067fdVersion Packages (#24173)61a315efix: mapreasoningconsistently across providers (#24123)a5db0afVersion Packages (#24143)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Bumps the @ai-sdk/anthropic dev dependency from 4.0.88 to 4.0.94 (patch release). The upgrade fixes structured output handling for Claude models that reject forced tool use, makes top-level reasoning option mapping consistent across providers, and adds support for refreshable auth tokens via sync and async token providers.