mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
Tool results sent through an OpenAI-compatible gateway lose their prompt cache marker right before the request leaves, so Anthropic models behind OpenRouter or LiteLLM never cache the prefix in tool loops. Now the marker is kept on a single text block when a tool result carries one. Tool results without a marker are sent exactly as before. Fixes #33755