AI_InvalidArgumentError: invalid anthropic provider options Error After Updating to version 1.2 #9330

Closed
opened 2026-02-16 18:12:12 -05:00 by yindo · 6 comments
Owner

Originally created by @MichaelYochpaz on GitHub (Feb 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I had version 1.1.63, and updated to version 1.2.1, and since updating, whenever I try to send a message, I get an error saying:

AI_InvalidArgumentError: invalid anthropic provider options

This appears to occur with any "thinking effort" setting that isn't Default. So using Low/Medium/High/Max all fail with this error, but using Default works properly.

I'm using Claude Opus 4.6 through GCP Vertex AI.

Plugins

No response

OpenCode version

1.2.1

Steps to reproduce

  1. Update to version 1.2.1
  2. Start a session / send a message using Claude Opus 4.6, with any reasoning effort that isn't "Default", through GCP Vertex AI

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @MichaelYochpaz on GitHub (Feb 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I had version 1.1.63, and updated to version 1.2.1, and since updating, whenever I try to send a message, I get an error saying: ``` AI_InvalidArgumentError: invalid anthropic provider options ``` This appears to occur with any "thinking effort" setting that isn't Default. So using Low/Medium/High/Max all fail with this error, but using Default works properly. I'm using Claude Opus 4.6 through GCP Vertex AI. ### Plugins _No response_ ### OpenCode version 1.2.1 ### Steps to reproduce 1. Update to version 1.2.1 2. Start a session / send a message using Claude Opus 4.6, with any reasoning effort that isn't "Default", through GCP Vertex AI ### Screenshot and/or share link <img width="946" height="603" alt="Image" src="https://github.com/user-attachments/assets/f2e1dc3d-6866-4162-a5ce-3aae19d01045" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:12:12 -05:00
yindo closed this issue 2026-02-16 18:12:12 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

This issue might be a duplicate of an existing issue. Please check:

  • #6806: Partial thinking config doesn't merge with defaults, causing AI_InvalidArgumentError - This appears to be the same error you're experiencing with thinking/reasoning effort settings

There's also related context in:

  • #12485: Support adaptive thinking for Claude Opus 4.6 - Discusses Anthropic's deprecated thinking config for Opus 4.6

Please check if #6806 addresses your issue, and if not, let us know if there are any differences in your case.

@github-actions[bot] commented on GitHub (Feb 14, 2026): This issue might be a duplicate of an existing issue. Please check: - #6806: Partial thinking config doesn't merge with defaults, causing AI_InvalidArgumentError - This appears to be the same error you're experiencing with thinking/reasoning effort settings There's also related context in: - #12485: Support adaptive thinking for Claude Opus 4.6 - Discusses Anthropic's deprecated thinking config for Opus 4.6 Please check if #6806 addresses your issue, and if not, let us know if there are any differences in your case.
Author
Owner

@MichaelYochpaz commented on GitHub (Feb 14, 2026):

I've reverted to 1.1.65, and it's back to working now, so I'm pretty certain this is an issue with version 1.2.0 / 1.2.1.

@MichaelYochpaz commented on GitHub (Feb 14, 2026): I've reverted to 1.1.65, and it's back to working now, so I'm pretty certain this is an issue with version 1.2.0 / 1.2.1.
Author
Owner

@rekram1-node commented on GitHub (Feb 14, 2026):

I think ik why

@rekram1-node commented on GitHub (Feb 14, 2026): I think ik why
Author
Owner

@rekram1-node commented on GitHub (Feb 14, 2026):

I think my open pr should fix it.

I need to properly setup vertex account to test

@rekram1-node commented on GitHub (Feb 14, 2026): I think my open pr should fix it. I need to properly setup vertex account to test
Author
Owner

@rekram1-node commented on GitHub (Feb 14, 2026):

Can u try latest?

@rekram1-node commented on GitHub (Feb 14, 2026): Can u try latest?
Author
Owner

@MichaelYochpaz commented on GitHub (Feb 14, 2026):

@rekram1-node It does work fine for me now with v1.2.2 :)
Thanks for the fix!

@MichaelYochpaz commented on GitHub (Feb 14, 2026): @rekram1-node It does work fine for me now with v1.2.2 :) Thanks for the fix!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9330