litellm/tests/test_litellm/llms/anthropic/chat
Sameer Kankute 4c1d91d96f
fix(anthropic): inject dummy tool without modify_params (#27620)
Anthropic rejects tool_use/tool_result when tools is omitted. Always map
and attach the dummy tool in transform_request so CLIs work without
litellm.modify_params.

- Add unit test for transform_request dummy tool with modify_params off
- Adjust parallel function calling integration expectations: Bedrock
  Converse still requires modify_params for this path

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 09:50:16 -07:00
..
guardrail_translation style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
conftest.py refactor: remove unnecessary comments from #27074 2026-05-04 19:34:56 +00:00
test_anthropic_chat_handler.py Fix Anthropic streaming reasoning token usage (#27319) 2026-05-06 15:28:22 -07:00
test_anthropic_chat_transformation.py fix(anthropic): inject dummy tool without modify_params (#27620) 2026-05-11 09:50:16 -07:00
test_code_interpreter_results_extraction.py fix: streaming container_id and consistent Pydantic types in output 2026-03-18 12:37:13 +01:00