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
Add logger to see websocket request
Sameer Kankute7f79140ff228
diff --git a/litellm/llms/openai/realtime/handler.py b/litellm/llms/openai/realtime/handler.pyindex 3ae4d2bc9f7..6ab43ab31e4 100644--- a/litellm/llms/openai/realtime/handler.py+++ b/litellm/llms/openai/realtime/handler.py@@ -57,6 +57,19 @@ class OpenAIRealtime(OpenAIChatCompletion):try:ssl_context = get_shared_realtime_ssl_context()+ # Log a masked request preview consistent with other endpoints.+ logging_obj.pre_call(+ input=None,+ api_key=api_key,+ additional_args={+ "api_base": url,+ "headers": {+ "Authorization": f"Bearer {api_key}",+ "OpenAI-Beta": "realtime=v1",+ },+ "complete_input_dict": {"query_params": query_params},+ },+ )async with websockets.connect( # type: ignoreurl,additional_headers={