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
refactor(realtime): freeze the empty credential mapping in the health check
mateo-berri5969fbb052eb
diff --git a/litellm/realtime_api/main.py b/litellm/realtime_api/main.pyindex 6fdadc52f13..f94ba4c4a02 100644--- a/litellm/realtime_api/main.py+++ b/litellm/realtime_api/main.py@@ -60,7 +60,9 @@ _EMPTY_MODEL_PARAMS: Final[Mapping[str, Any]] = MappingProxyType({})def _model_params_with_stored_credentials(model_params: Mapping[str, Any]) -> Mapping[str, Any]:credential_name: Final = model_params.get("litellm_credential_name")credential_values: Final = (- CredentialAccessor.get_credential_values(credential_name) if isinstance(credential_name, str) else {}+ CredentialAccessor.get_credential_values(credential_name)+ if isinstance(credential_name, str)+ else _EMPTY_MODEL_PARAMS)return MappingProxyType({**credential_values, **model_params})