Skip to content

Reasoning Doesn't Work for Claude Models through Vertex Provider #9894

@MichaelYochpaz

Description

@MichaelYochpaz

Description

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:

    "provider": {
        "google-vertex-anthropic": {
            "models": {
                "claude-opus-4-5@20251101": {
                    "variants": {
                        "test": {
                            "max_tokens": 64000,
                            "thinking": {
                                "type": "enabled",
                                "budget_tokens": 32000
                            }
                        }
                    }
                },
            },
        },
    },

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.

Plugins

None

OpenCode version

v1.1.28

Steps to reproduce

No response

Screenshot and/or share link

https://opncd.ai/share/ha0A4Lmq

Image

Operating System

macOS / Windows 11 (2 different devices, same issue)

Terminal

Windows Terminal / iTerm / OpenCode Desktop

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions