You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rekram1-node Yes I restarted it after updating the config. To confirm, I even asked a working model to use an the gitlab mcp server and it didn't work.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"myprovider": {
"npm": "@ai-sdk/openai-compatible",
"name": "myprovider",
"options": {
// "baseURL": "myproviderapi.example.com/v1"
// Go to webhook.site and paste your unique url here:
"baseURL": ""
// comment out to avoid leaking secrets (or delete to be safe)
// "apiKey": "{env:myproviderGPT_OPENAI_API_KEY}"
},
"models": {
"gpt-5": {
"name": "gpt-5"
},
....
}
}
}
}
If you set the url to this proxy, then open opencode, send a message to any model under that provider, then go to the webhook site, grab the request body that is NOT for title gen (so the rlly big one with tools) and then show it here, it should help me answer which tool / thing is causing the issue
I'm experiencing a similar problem. My setup is as follows:
OpenCode -> Remote Litellm -> Azure
I added a proxy like this and logged the requests:
OpenCode -> local proxy -> Remote Litellm -> Azure
I don't have access to Remote Litellm and I don't know which setting is causing this, but I've identified the source of my problem, and I'm sharing it in case we have similar issues.
OpenCode calls tools according to the /chat/completion API, but Azure expects tool calls in the /responses API format.
Activity
github-actions commentedon Oct 21, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 21, 2025
Are you using any mcp servers?
tnthi115 commentedon Oct 21, 2025
Yes
rekram1-node commentedon Oct 21, 2025
@tnthi115 what happens if u remove them does it work without them?
tnthi115 commentedon Oct 21, 2025
I commented out my mcp config, but I got the same error.
rekram1-node commentedon Oct 21, 2025
@tnthi115 and u restarted opencode after updating the config?
tnthi115 commentedon Oct 21, 2025
@rekram1-node Yes I restarted it after updating the config. To confirm, I even asked a working model to use an the gitlab mcp server and it didn't work.
rekram1-node commentedon Oct 22, 2025
So what;s your setup is this a custom provider -> litellm -> azure?
tnthi115 commentedon Oct 22, 2025
Yes, litellm gateway and azure openai instance. I also have the same error as #2387 and the same setup as one of the ones mentioned in that issue.
rekram1-node commentedon Oct 24, 2025
I can't view that link you sent, is it relevant to debugging? Can u maybe provide a screenshot or something
tnthi115 commentedon Oct 24, 2025
@rekram1-node Sorry, posted the wrong link. I just updated it
rekram1-node commentedon Oct 26, 2025
And do you have any custom tools? I haven't seen anyone else have this issue with litellm so I tend to think it is specific to your setup
rekram1-node commentedon Oct 28, 2025
does this happen on every request or is it only on compacts
beng90 commentedon Oct 30, 2025
I have the same issue. It works when I turn off all Tools in Continue configuration or remove "tool_use" from model config
rekram1-node commentedon Oct 30, 2025
Can either of you try this:
If you set the url to this proxy, then open opencode, send a message to any model under that provider, then go to the webhook site, grab the request body that is NOT for title gen (so the rlly big one with tools) and then show it here, it should help me answer which tool / thing is causing the issue
theepicsaxguy commentedon Dec 2, 2025
I encounter the exact same issue with azure in litellm. This seems to happens only when tagging a file.
The webhooks shows all functions has names.
However I notice this seems to be working with gpt-5.1 but not for gpt-5.1-codex
mrakblt commentedon Dec 21, 2025
I'm experiencing a similar problem. My setup is as follows:
OpenCode -> Remote Litellm -> Azure
I added a proxy like this and logged the requests:
OpenCode -> local proxy -> Remote Litellm -> Azure
I don't have access to Remote Litellm and I don't know which setting is causing this, but I've identified the source of my problem, and I'm sharing it in case we have similar issues.
OpenCode calls tools according to the /chat/completion API, but Azure expects tool calls in the /responses API format.
/chat/completions api request body example (Source: https://platform.openai.com/docs/api-reference/chat/create)
/responses api request body example (Source: https://platform.openai.com/docs/guides/function-calling#function-tool-example)
LouisLoyer commentedon Mar 11, 2026
I encounter the exact same issue with azure in litellm.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.