[PR #9953] fix(provider): add thinking presets for Google Vertex Anthropic #13282

Closed
opened 2026-02-16 18:18:08 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9953

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9953 **State:** closed **Merged:** Yes --- ## 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 - [x] Existing tests pass (`bun test --grep transform` - 75 tests pass) - [x] Type check passes (`bun run typecheck`) - [ ] Manual testing with Claude models on Vertex AI with reasoning enabled 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:18:08 -05:00
yindo closed this issue 2026-02-16 18:18:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13282