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] Use type:ignore instead of Union return type for realtime endpoint
yuneng-jianga6ab172db0e3
diff --git a/litellm/proxy/realtime_endpoints/endpoints.py b/litellm/proxy/realtime_endpoints/endpoints.pyindex 4c0a407c0e7..14d004d977e 100644--- a/litellm/proxy/realtime_endpoints/endpoints.py+++ b/litellm/proxy/realtime_endpoints/endpoints.py@@ -2,7 +2,7 @@import jsonimport time-from typing import Any, Dict, Optional, Union+from typing import Any, Dict, Optionalimport httpxfrom fastapi import APIRouter, Depends, HTTPException, Request, Response@@ -89,7 +89,7 @@ async def create_realtime_client_secret(request: Request,fastapi_response: Response,user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),-) -> Union[RealtimeClientSecretResponse, Response]:+) -> RealtimeClientSecretResponse:from litellm.proxy.proxy_server import (add_litellm_data_to_request,general_settings,@@ -181,7 +181,7 @@ async def create_realtime_client_secret(upstream_resp.status_code,upstream_resp.text,)- return Response(+ return Response( # type: ignore[return-value]content=upstream_resp.content,status_code=upstream_resp.status_code,media_type="application/json",