Skip to content

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]

Merge branch 'main' into litellm_fix_cicd_26_02

Sameer Kankute5e63969ed756
diff --cc litellm/litellm_core_utils/realtime_streaming.py
index ee028a74f48,5d7a5bfe318..c5e0d1f26ae
--- a/litellm/litellm_core_utils/realtime_streaming.py
+++ b/litellm/litellm_core_utils/realtime_streaming.py
@@@ -359,10 -378,10 +378,10 @@@ class RealTimeStreaming
self.store_message(event_str)
await self.websocket.send_text(event_str)
blocked = await self.run_realtime_guardrails(
- transcript, item_id=event.get("item_id")
+ cast(str, transcript), item_id=cast(Optional[str], event.get("item_id"))
)
if not blocked:
- await self.backend_ws.send(
+ await self._send_to_backend(
json.dumps({"type": "response.create"})
)
continue