build(deps-dev): bump @ai-sdk/anthropic from 4.0.88 to 4.0.94

Closed
DE
5d ago
+6-6

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 definitions and $defs next to a top-level $ref when 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]
    • @​ai-sdk/provider-utils@​5.0.72
    • @​ai-sdk/provider@​4.0.35

4.0.92

Patch Changes

  • 61a315e: fix: map the top-level reasoning option consistently across providers

    Providers now resolve reasoning the same way:

    1. A provider-specific reasoning setting in providerOptions is sent unchanged. OpenAI no longer drops providerOptions.openai.reasoningEffort values that are not in its list for the model, and Fireworks no longer rewrites providerOptions.fireworks.reasoningEffort. Fireworks also sends top-level reasoning values 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).
    2. Otherwise, reasoning maps 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 without xhigh effort, and 'medium' maps to 'low' instead of 'high' on DeepSeek, Kimi K3, and Mistral GLM-5.3 models.
    3. '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 OpenAI gpt-oss models, and Gemini 2.5 Pro (minimum thinking budget). Gemini 3 and Anthropic and Bedrock between_tools mappings now emit the compatibility warning too.

    mapReasoningToProviderEffort now accepts any reasoning value, returns an optional providerOptionsEffort unchanged, and rounds levels that are missing from the effort map to the closest supported level. mapReasoningToProviderBudget maps 'none' to the minimum reasoning budget, always returns a budget, and uses the default percentage for levels missing from budgetPercentages. OpenAICompatibleChatConfig adds an optional mapReasoning function for mapping the top-level reasoning option.

  • Updated dependencies [61a315e]

    • @​ai-sdk/provider-utils@​5.0.71

4.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 authToken providers 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
  • 028a025 Version Packages (#24280)
  • b0d51fe fix(anthropic): keep the JSON response tool for schemas native structured out...
  • e10aebb fix(anthropic): return the final text when the JSON response tool is never ca...
  • f4c5f1e fix(anthropic): use native structured outputs for forced-tool-rejecting model...
  • 9b603d3 Version Packages (#24224)
  • dcd2f8d feat(openai): centralize model capabilities in a unified catalog (#24174)
  • 5c247e9 feat(sandbox): add stat, listDirectory, and deleteFile to SandboxSession (#24...
  • d1067fd Version Packages (#24173)
  • 61a315e fix: map reasoning consistently across providers (#24123)
  • a5db0af Version Packages (#24143)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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.