We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 866188a commit 81b7b58Copy full SHA for 81b7b58
1 file changed
packages/opencode/src/plugin/github-copilot/copilot.ts
@@ -334,6 +334,13 @@ export async function CopilotAuthPlugin(input: PluginInput): Promise<Hooks> {
334
if (incoming.model.api.id.includes("gpt")) {
335
output.maxOutputTokens = undefined
336
}
337
+
338
+ // GitHub Copilot's /v1/messages shim rejects the GA `eager_input_streaming`
339
+ // field on tool definitions ("Extra inputs are not permitted"). Opt out of
340
+ // the @ai-sdk/anthropic default so it stops injecting the field.
341
+ if (incoming.model.api.npm === "@ai-sdk/anthropic") {
342
+ output.options.toolStreaming = false
343
+ }
344
},
345
"chat.headers": async (incoming, output) => {
346
if (!incoming.model.providerID.includes("github-copilot")) return
0 commit comments