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
fix gigachat stream usage
KnyazSh81dbb3803c42
diff --git a/litellm/llms/gigachat/chat/streaming.py b/litellm/llms/gigachat/chat/streaming.pyindex 9ef29b2c6cb..b42c7baa403 100644--- a/litellm/llms/gigachat/chat/streaming.py+++ b/litellm/llms/gigachat/chat/streaming.py@@ -80,6 +80,16 @@ class GigaChatModelResponseIterator:prompt_tokens=usage.prompt_tokens,completion_tokens=usage.completion_tokens,total_tokens=usage.total_tokens,+ prompt_tokens_details=(+ usage.prompt_tokens_details.model_dump()+ if usage.prompt_tokens_details+ else None+ ),+ completion_tokens_details=(+ usage.completion_tokens_details.model_dump()+ if usage.completion_tokens_details+ else None+ ),)if finish_reason is not None: