Skip to content

fix(provider): add thinking presets for Google Vertex Anthropic#9953

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
zerone0x:fix/vertex-anthropic-thinking-presets
Jan 23, 2026
Merged

fix(provider): add thinking presets for Google Vertex Anthropic#9953
rekram1-node merged 1 commit intoanomalyco:devfrom
zerone0x:fix/vertex-anthropic-thinking-presets

Conversation

@zerone0x
Copy link
Contributor

Summary

  • Adds @ai-sdk/google-vertex/anthropic to the thinkingPresets switch statement
  • Updates adjustMaxTokens to handle thinking budget calculations for Vertex Anthropic

This enables reasoning/thinking support for Claude models accessed through Google Vertex AI.

Fixes #9894

Changes

  • Add @ai-sdk/google-vertex/anthropic case to thinkingPresets() (uses same config as @ai-sdk/anthropic)
  • Add @ai-sdk/google-vertex/anthropic to adjustMaxTokens() condition for proper token budgeting

Test plan

  • Existing tests pass (bun test --grep transform - 75 tests pass)
  • Type check passes (bun run typecheck)
  • Manual testing with Claude models on Vertex AI with reasoning enabled

🤖 Generated with Claude Code

Add @ai-sdk/google-vertex/anthropic to the thinkingPresets switch
statement and adjustMaxTokens function. This enables reasoning/thinking
support for Claude models accessed through Google Vertex AI.

Previously, Claude models on Vertex AI had no thinking configuration
presets, causing reasoning mode to not work even when enabled.

Fixes anomalyco#9894

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node merged commit 31094cd into anomalyco:dev Jan 23, 2026
5 checks passed
xenonwellz pushed a commit to xenonwellz/opencode that referenced this pull request Jan 28, 2026
xenonwellz pushed a commit to xenonwellz/opencode that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reasoning Doesn't Work for Claude Models through Vertex Provider

2 participants