You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reasoning Doesn't Work for Claude Models through Vertex Provider #9894
Hey, I'm using Claude Opus 4.5 through GCP Vertex AI, and noticed that for some reason, the reasoning doesn't work for me, even when reasoning is set to "high".
I initially thought it was perhaps hidden (I'm new to using OpenCode), but the responses I'm getting are way too fast for that, and I've tried toggling /thinking on and off, but it made no difference.
I also tried using a custom configuration on the config:
But even using this "test" mode (which was successfully added) didn't change anything.
I also tested Claude Sonnet 4.5 and Opus 4 to check if it's specific to Opus 4.5, but those had the same issue.
I'll add that I used the same Vertex project with Roo Code and it used reasoning without any issues, so this shouldn't be an issue / limitation on my side.
I know this is not a lot of information to work with. If you need any additional information to help you debug this - please let me know how I can help.
changed the title [-]Reasoning Doesn't Work Claude Models on GCP Vertex[/-][+]Reasoning Doesn't Work for Claude Models through Vertex Provider[/+]on Jan 21, 2026
Thanks for the issue and the fix! I tried with OpenCode v1.1.34 and I'm still not seeing thinking with Claude Opus 4.5 via Vertex Anthropic (with /thinking enabled and variant set to high).
I think the npm string in #9953 should be @ai-sdk/google-vertex instead of @ai-sdk/google-vertex/anthropic based on the models.dev data?
Hey @rekram1-node, just tested version 1.1.36 - reasoning still doesn't work on Vertex.
I suspect that this is because of this line I initially added that was removed before merging, which was part of the fix.
if (provider.id==="google-vertex-anthropic") return"@ai-sdk/google-vertex/anthropic"
I'd also recommend keeping the tests (or at least some of them), since they probably would've helped noticing that problem by failing if someone removes this line.
Just tested, and can confirm reasoning works now for Anthropic models through Vertex, following the merge of anomalyco/models.dev#717 and running opencode models --refresh.
Activity
github-actions commentedon Jan 21, 2026
This issue might be a duplicate of existing issues. Please check:
thinkmodeconfig #6768: No Chain of Thought retrieved if Provider lacks support, despite 'thinkmode' config (reasoning config being ignored by provider)Feel free to ignore if none of these address your specific case.
[-]Reasoning Doesn't Work Claude Models on GCP Vertex[/-][+]Reasoning Doesn't Work for Claude Models through Vertex Provider[/+]rekram1-node commentedon Jan 22, 2026
this should be fairly straight forward to fix, i hope will look
fix(provider): add thinking presets for Google Vertex Anthropic
koverholt commentedon Jan 23, 2026
Thanks for the issue and the fix! I tried with OpenCode v1.1.34 and I'm still not seeing thinking with Claude Opus 4.5 via Vertex Anthropic (with
/thinkingenabled and variant set tohigh).I think the npm string in #9953 should be
@ai-sdk/google-vertexinstead of@ai-sdk/google-vertex/anthropicbased on the models.dev data?MichaelYochpaz commentedon Jan 23, 2026
@rekram1-node I also just tested v1.1.34 and reasoning is still not working.
cc @zerone0x
MichaelYochpaz commentedon Jan 24, 2026
Opened #10442.
Tested locally and I can see thinking properly using Opus on Vertex following these changes :)
MichaelYochpaz commentedon Jan 26, 2026
Hey @rekram1-node, just tested version 1.1.36 - reasoning still doesn't work on Vertex.
I suspect that this is because of this line I initially added that was removed before merging, which was part of the fix.
I'd also recommend keeping the tests (or at least some of them), since they probably would've helped noticing that problem by failing if someone removes this line.
r-bit-rry commentedon Jan 27, 2026
Please merge
MichaelYochpaz commentedon Jan 31, 2026
Just tested, and can confirm reasoning works now for Anthropic models through Vertex, following the merge of anomalyco/models.dev#717 and running
opencode models --refresh.Thanks!
rekram1-node commentedon Jan 31, 2026
thanks for ur prs @MichaelYochpaz apologies for delays it is super hard to see things rn due to sheer volume
koverholt commentedon Jan 31, 2026
Same here, confirming that thinking is working now for Anthropic Vertex models. Thanks all for pushing this through! ❤️