LiteLLM Anthropic-to-Chat-Completions translation bugs for Claude Code

Parent: Mac local LLMs: Chat templates, reasoning and tool calling · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

With `modify_params: true` LiteLLM repairs OpenAI-format tool conversations before forwarding: it adds dummy results for orphaned tool calls, drops tool results whose id matches no call, and fixes empty text content.

These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Facts

Children

← the whole tree · 3D view· how to read this page