-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Open
Labels
Description
Description
## Description
Using OpenCode v1.1.31 with LiteLLM proxy, error occurs on **new sessions**:
litellm.UnsupportedParamsError: Anthropic doesn't support tool calling without tools= param specified.
Received Model Group=claude-opus-4-5-20251101
Available Model Group Fallbacks=None
## Config
```json
{
"provider": {
"some-litellm": {
"name": "some-litellm",
"api": "https://api.some-litellm.com/v1",
"options": {
"litellmProxy": true
},
"models": {
"claude-opus-4-5-20251101": {
"name": "Claude Opus 4.5",
"limit": { "context": 200000, "output": 32000 }
}
}
}
}
}
Expected
PR #8658 should inject _noop tool when litellmProxy: true or provider ID contains "litellm".
Actual
The fix doesn't work. Error occurs immediately on first message.
Environment
- OpenCode: v1.1.31
- Platform: Windows 11
- Cannot modify server-side LiteLLM config
Related
- feat: add litellmProxy provider option for explicit LiteLLM compatibility #8658, fix: handle dangling tool_use blocks for LiteLLM proxy compatibility #8497, fix: Anthropic via LiteLLM/proxies rejects requests with tool history but no tools param #8246, LiteLLM error: Anthropic doesn't support tool calling without tools= param specified #2915
### Plugins
on my opencode
### OpenCode version
v1.1.31
### Steps to reproduce
Sisyphus
### Screenshot and/or share link
_No response_
### Operating System
Windows 10
### Terminal
Windows PowerShell