Skip to content

Conversation

@seilk
Copy link

@seilk seilk commented Jan 13, 2026

What does this PR do?

Fixes Anthropic/LiteLLM proxies rejecting requests when message history contains tool calls but tools param is empty.
Adds a dummy tool when:

How did you verify your code works?

  • bun run tsc --noEmit passes
  • Tested with LiteLLM gateway: tool-history requests now succeed
  • Existing tests unaffected (557 pass, 95 fail - same as baseline)

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@seilk seilk force-pushed the fix/anthropic-tool-history-tools-param branch from 4482b9a to 07ade06 Compare January 14, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Anthropic via LiteLLM/proxies rejects requests with tool history but no tools param

2 participants