GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LiteLLM proxy error: "Anthropic doesn't support tool calling without tools=" even with litellmProxy: true (v1.1.31) · Issue #10037 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
Closed
LiteLLM proxy error: "Anthropic doesn't support tool calling without tools=" even with litellmProxy: true (v1.1.31)#10037
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingwindows

Description

@wcpaxx
wcpaxx
opened on Jan 22, 2026
Issue body actions

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

Activity

  1. wcpaxx
    added
    bugSomething isn't working
    on Jan 22, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 22, 2026
  3. github-actions
    added
    windows
    on Jan 22, 2026
  4. yiethan0618-lab commented on Jan 23, 2026

    @yiethan0618-lab
    yiethan0618-lab
    on Jan 23, 2026
    More actions

    已解决

  5. ewencodes commented on Jan 28, 2026

    @ewencodes
    ewencodes
    on Jan 28, 2026
    More actions

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

  6. github-actions commented on Mar 30, 2026

    @github-actions
    github-actionsBot
    on Mar 30, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. github-actions
    closed this as completedon Mar 30, 2026
  8. ollisal commented on Jun 15, 2026

    @ollisal
    ollisal
    on Jun 15, 2026
    More actions

    I still get this error whenever compaction threshold is reached, although I have options.litellmProxy = true

    I think it worked for a while in the spring, but hasn't worked in at least a month

    OpenCode 1.17.7

    Reacted by Leonardo
  9. Jeffwhen commented on Jun 30, 2026

    @Jeffwhen
    Jeffwhen
    on Jun 30, 2026
    More actions

    Seems they have removed litellmProxy option. My workaround is add github-copilot into my provider ID. Works like a charm

    opencode/packages/opencode/src/session/llm/request.ts

    Lines 159 to 175 in 6b074ed

    if (
    input.model.providerID.includes("github-copilot") &&
    Object.keys(tools).length === 0 &&
    hasToolCalls(input.messages)
    ) {
    // Copilot needs a tools field when replaying prior tool calls, even if no tools are currently enabled.
    tools["_noop"] = aiTool({
    description: "Do not call this tool. It exists only for API compatibility and must never be invoked.",
    inputSchema: jsonSchema({
    type: "object",
    properties: {
    reason: { type: "string", description: "Unused" },
    },
    }),
    execute: async () => ({ output: "", title: "", metadata: {} }),
    })
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.