GeezerVison is showing github.com — `google-vertex-anthropic` rejects `eager_input_streaming` on tool definitions — same as #23342 · Issue #24562 · anomalyco/opencode
google-vertex-anthropic rejects eager_input_streaming on tool definitions — same as #23342 #24562
Labels
bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff) Description
Description
google-vertex-anthropic provider fails with tools.0.custom.eager_input_streaming: Extra inputs are not permitted on every request that includes tools. This is the same root cause as #23342 (fixed for github-copilot in #23223), but the fix was not applied to the Vertex Anthropic provider.
Root Cause
@ai-sdk/[email protected] (bumped in #23120 on April 17) sends eager_input_streaming: true on every tool definition by default. The Google Vertex Anthropic proxy rejects this field the same way GitHub Copilot's proxy does.
The fix in #23223 sets output.options.toolStreaming = false, but only for the github-copilot plugin (packages/opencode/src/plugin/github-copilot/copilot.ts). The google-vertex-anthropic provider has no equivalent handling.
Suggested Fix
Apply toolStreaming = false for google-vertex-anthropic in the provider transform layer (packages/opencode/src/provider/transform.ts), similar to the Copilot fix:
if (model.providerID === "google-vertex-anthropic") {
output.options.toolStreaming = false
}
Related Issues
Plugins
No response
OpenCode version
1.14.25
Steps to reproduce
- Configure OpenCode with
google-vertex-anthropic provider (e.g., google-vertex-anthropic/claude-opus-4-6)
- Send any message that triggers tool use
- Every request fails immediately with:
AI_APICallError: tools.0.custom.eager_input_streaming: Extra inputs are not permitted
at <anonymous> (/$bunfs/root/chunk-md0rk14k.js:6:14583)
Screenshot and/or share link
No response
Operating System
macOS 26.4.1
Terminal
Ghostty
Activity
added
coreAnything pertaining to core functionality of the application (opencode server stuff) on Apr 27, 2026rekram1-node commented on Apr 27, 2026
Made a PR, for now you can do this:
"provider": {
"google-vertex-anthropic": {
"models": {
"claude-opus-4-6": {
"options": {
"toolStreaming": false,
},
},
},
},
You can pass that option for each model u wanna disable it for
Metadata
Metadata
bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff) Development
No branches or pull requestsIssue actions