Description
Opus 4.7 is available in model selection in OpenCode but when using it - it always return 429. To be clear: we have it enabled in our organization and it's available through Claude Code (but requires CLOUD_ML_REGION=eu to be set, which OpenCode seems to ignore).
Another problem that 1M token Sonnet/Opus aren't in the list, but should I create a separate issue for that?
https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/sonnet-4-6 and some other models has already "Maximum input tokens: 1,000,000", put in OpenCode it looks that it is still set to 200k
Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
- Use https://opencode.ai/docs/providers/#google-vertex-ai for specific of installation
- In our case variables are next (we use just models available in EU):
GOOGLE_APPLICATION_CREDENTIALS=/home/<redacted>/.config/gcloud/application_default_credentials.json
GOOGLE_CLOUD_PROJECT=<redacted>
VERTEX_LOCATION=europe-west1 # note that nothing changes if I set "eu" there
# Claude Code
export CLOUD_ML_REGION=eu
export CLAUDE_CODE_USE_VERTEX=1
export ANTHROPIC_VERTEX_PROJECT_ID=<redacted>
- Open OpenCode, select Opus 4.6, everything works
- Select Opus 4.7 - 429 is returned
If you select same model within Claude Code - everything is fine. So the problem is most probably on provider side.
Screenshot and/or share link
Opus 4.7
<img width="2560" height="1440" alt="Image" src="https://git
[Truncado — 1772 chars totais]
Description
Opus 4.7 is available in model selection in OpenCode but when using it - it always return 429. To be clear: we have it enabled in our organization and it's available through Claude Code (but requires
CLOUD_ML_REGION=euto be set, which OpenCode seems to ignore).Another problem that 1M token Sonnet/Opus aren't in the list, but should I create a separate issue for that?
https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/sonnet-4-6 and some other models has already "Maximum input tokens: 1,000,000", put in OpenCode it looks that it is still set to 200k
Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
If you select same model within Claude Code - everything is fine. So the problem is most probably on provider side.
Screenshot and/or share link
Opus 4.7
<img width="2560" height="1440" alt="Image" src="https://git