litellm/tests/test_litellm/llms/anthropic
mateo-berri fc4c961f98 fix(anthropic): key the chat-completions bridge spend row on the streamed msg_ id
Streaming /v1/messages against a model served through the chat-completions
bridge (every non-Anthropic provider other than OpenAI) minted its msg_ id
inside the stream wrapper, so the spend row landed under the provider's own
completion id and the caller could not find the call by the only id it saw.

The wrapper now mints the id once in its constructor and hands it to the
logging object, the same way the Responses-API bridge does.
2026-09-03 04:03:31 -07:00
..
batches test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
chat fix(guardrails): skip streaming guardrail rounds that re-scan cleared output (#39386) 2026-09-02 18:25:28 -07:00
experimental_pass_through fix(anthropic): key the chat-completions bridge spend row on the streamed msg_ id 2026-09-03 04:03:31 -07:00
files
messages fix(advisor): exclude in-sequence system rows from the advisor sub-call context 2026-08-18 13:51:01 -07:00
__init__.py
test_anthropic_common_utils.py fix(anthropic): emit signature-only thinking blocks on the /v1/messages bridge (#38809) 2026-08-29 15:04:22 -07:00
test_anthropic_count_tokens_transformation.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_anthropic_files_and_batches.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_anthropic_output_format_filter.py
test_anthropic_reasoning_effort.py fix(anthropic/bedrock): request summarized adaptive thinking for reasoning_effort and use provider thinking token counts 2026-08-22 23:10:42 +00:00
test_anthropic_schema_filter.py fix(anthropic): reconcile enum with declared type in output_format schema (#37882) 2026-08-24 11:43:47 -07:00
test_anthropic_structured_output.py fix(model_map): flag native structured outputs on Anthropic-direct claude-sonnet-5 and claude-haiku-4-5 (#35930) 2026-08-15 11:51:35 -07:00
test_azure_ai_cache_pricing.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_cost_calculation_dict_safety.py refactor: dedupe server_tool_use web search reads and type fresh test locals 2026-08-27 08:01:52 +00:00
test_count_tokens_oauth.py
test_message_sanitization.py