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: completion chat id
Coffeeac0386ae1f29
diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.pyindex 2e9e6770a1d..b6a504031eb 100644--- a/litellm/litellm_core_utils/streaming_handler.py+++ b/litellm/litellm_core_utils/streaming_handler.py@@ -950,6 +950,8 @@ class CustomStreamWrapper:returndef chunk_creator(self, chunk: Any): # type: ignore # noqa: PLR0915+ if hasattr(chunk, 'id'):+ self.response_id = chunk.idmodel_response = self.model_response_creator()response_obj: Dict[str, Any] = {}try: