litellm - 💡(How to fix) Fix [Bug]: v1.83.7 regression - tool_call function.arguments lost during OpenAI→Anthropic response conversion

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

Setup: Claude Code → Anthropic protocol → litellm proxy → OpenAI protocol → glm-5.1

What happens: Model returns correct function.arguments (e.g. '{"file_path": "test.py"}'), but after litellm converts the response to Anthropic format, the tool_use.input becomes {} (empty dict).

Evidence from logs:

OpenAI response (correct): arguments='{"file_path": "D:\python-code\test\app.py"}' Anthropic response sent to client (broken): input: {} Next request from Claude Code includes the broken input: {} Regression: v1.79.1 does NOT have this issue. v1.83.7 does.

Related code changes in v1.83.7:

New _remove_thought_signatures_from_messages function with model_dump() calls New _process_assistant_message_tool_calls with model_dump() on tool_call Pydantic models from future import annotations added to utils.py

Steps to Reproduce

Relevant log output

What part of LiteLLM is this about?

No response

What LiteLLM version are you on ?

v1.83.7-stable

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: v1.83.7 regression - tool_call function.arguments lost during OpenAI→Anthropic response conversion