litellm/tests/unit/llms/anthropic/chat
izzybn a8688005dc
fix(anthropic): a non-string advisor block id no longer answers 500 (#54167)
* fix(anthropic): match advisor blocks only by string id so a list id no longer 500s

* fix(anthropic): drop advisor blocks with a non-string id under drop_params

Without drop_params the blocks reach the provider as sent, so it answers its own 400

* fix(anthropic): drop every unpaired advisor block under drop_params

* fix(anthropic): read advisor ids as strings in the stale tool search filter and keep object advice text

* fix(anthropic): return copies from the advisor history strip instead of editing the caller's messages

* refactor(anthropic): read message fields through the typed helpers in the advisor history strip

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-24 10:21:39 -08:00
..
guardrail_translation fix(guardrails): keep cache_control in /v1/messages guardrail translation for Claude and Gemini aliases (#53742) 2026-11-23 09:35:07 -08:00
__init__.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
conftest.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_anthropic_chat_handler.py fix(exceptions): keep the provider error body on e.response for SDK callers (#53587) 2026-11-23 07:23:53 +00:00
test_anthropic_chat_transformation.py fix(anthropic): a non-string advisor block id no longer answers 500 (#54167) 2026-11-24 10:21:39 -08:00
test_code_interpreter_results_extraction.py feat(anthropic): workload identity federation and pluggable identity sources (#44448) 2026-10-03 17:08:30 -07:00
test_transformation.py test: move whole-unit legacy test files into tests/unit and delete dead skips (#44807) 2026-10-07 05:02:28 +00:00