LiteLLM proxy error: "Anthropic doesn't support tool calling without tools=" even with litellmProxy: true (v1.1.31) #7207

Open
opened 2026-02-16 18:06:27 -05:00 by yindo · 2 comments
Owner

Originally created by @wcpaxx on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

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


### 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
Originally created by @wcpaxx on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ```markdown ## 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 - #8658, #8497, #8246, #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
yindo added the windowsbug labels 2026-02-16 18:06:27 -05:00
Author
Owner

@yiethan0618-lab commented on GitHub (Jan 23, 2026):

已解决

@yiethan0618-lab commented on GitHub (Jan 23, 2026): 已解决
Author
Owner

@ewencodes commented on GitHub (Jan 28, 2026):

Hi, i get the same issue when trying to compact using Anthropic models even with the "litellmProxy": true..

@ewencodes commented on GitHub (Jan 28, 2026): Hi, i get the same issue when trying to compact using Anthropic models even with the `"litellmProxy": true`..
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7207