The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(streaming): build thinking chunks with typed Delta/StreamingChoices
Emerson Gomesc63d5fa0b5bc
diff --git a/tests/test_litellm/litellm_core_utils/test_streaming_chunk_builder_utils.py b/tests/test_litellm/litellm_core_utils/test_streaming_chunk_builder_utils.pyindex 34c9efd8382..da6d8027921 100644--- a/tests/test_litellm/litellm_core_utils/test_streaming_chunk_builder_utils.py+++ b/tests/test_litellm/litellm_core_utils/test_streaming_chunk_builder_utils.py@@ -168,16 +168,14 @@ def test_get_combined_thinking_content_preserves_interleaved_blocks():def make_chunk(**delta_kwargs):return ModelResponseStream(- **{- **base_chunk,- "choices": [- {- "index": 0,- "delta": delta_kwargs,- "finish_reason": None,- }- ],- }+ **base_chunk,+ choices=[+ StreamingChoices(+ index=0,+ delta=Delta(**delta_kwargs),+ finish_reason=None,+ )+ ],)chunks = [