litellm/tests/test_litellm/llms/anthropic
Julio Quinteros Pro 6b4bc99202 Fix Anthropic streaming sync __next__ and Azure GPT-5.1 logprobs
Two independent fixes for pre-existing test failures on main:

1. Anthropic streaming: The sync __next__ method used a simple
   holding_chunk pattern that lost chunks when multiple events needed
   to be returned. Refactored to use the same chunk_queue approach as
   the async __anext__ method. Also fixed tests that used ModelResponse
   (which defaults finish_reason to 'stop') instead of ModelResponseStream.

2. Azure GPT-5.1 logprobs: The base OpenAI class includes logprobs for
   gpt-5.1+ models, but Azure hasn't verified support for gpt-5.1.
   Added explicit removal of logprobs/top_logprobs for gpt-5.1 (non-5.2)
   models in the Azure config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 18:16:11 -03:00
..
chat merge: resolve conflicts with upstream/main 2026-03-02 18:49:24 -03:00
experimental_pass_through Fix Anthropic streaming sync __next__ and Azure GPT-5.1 logprobs 2026-03-03 18:16:11 -03:00
test_anthropic_common_utils.py Add support for forwarding provider's auth headers 2026-02-25 12:08:25 +05:30
test_anthropic_count_tokens_transformation.py fix(count_tokens): include system and tools in token counting API requests 2026-02-27 15:39:35 -03:00
test_anthropic_files_and_batches.py Add tests for file and batch feat for anthropic 2025-12-10 17:14:47 +05:30
test_anthropic_structured_output.py fix(test): update test_other_constraints_preserved for new schema filtering behavior 2026-02-15 19:10:44 -03:00
test_azure_ai_cache_pricing.py [Fix] Anthropic models on Azure AI cache pricing (#19532) (#19614) 2026-01-22 20:00:40 -08:00
test_count_tokens_oauth.py fix(anthropic): handle OAuth tokens in count_tokens endpoint (#22366) 2026-03-02 19:21:27 +05:30
test_message_sanitization.py fix(test): correct assertion order in test_case_a_orphaned_tool_call_multiple 2026-02-18 08:25:33 -03:00