Skip to content

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

@wcpaxx

Description

@wcpaxx

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions