litellm/tests/test_litellm/llms/openrouter/chat
Krish Dholakia e5251e7188
Openrouter - filter out cache_control flag for non-anthropic models (allows usage with claude code) (#12850)
* fix(gpt_transformation.py): remove 'cache_control' flag for openai/openai-compatible calls

Fixes https://github.com/BerriAI/litellm/issues/12787

* fix(openrouter/chat/transformation.py): allow passing openrouter cache control flag for claude models

* fix(gpt_transformation.py): fix import

* fix: fix adding tools
2025-07-21 22:15:48 -07:00
..
test_openrouter_chat_transformation.py Openrouter - filter out cache_control flag for non-anthropic models (allows usage with claude code) (#12850) 2025-07-21 22:15:48 -07:00