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 pull request #37602 from BerriAI/litellm_vertex_live_db_credentials

Mateo Wang0904d5836e69
diff --cc litellm/constants.py
index eff82bc268b,3ce2cfd35a5..a845b1a49ae
--- a/litellm/constants.py
+++ b/litellm/constants.py
@@@ -243,10 -243,10 +243,13 @@@ AIOHTTP_NEEDS_CLEANUP_CLOSED: Final = (
# https://github.com/openai/openai-agents-python/blob/cf1b933660e44fd37b4350c41febab8221801409/src/agents/realtime/openai_realtime.py#L235
_max_size_env: Final = os.getenv("REALTIME_WEBSOCKET_MAX_MESSAGE_SIZE_BYTES")
REALTIME_WEBSOCKET_MAX_MESSAGE_SIZE_BYTES: Final = int(_max_size_env) if _max_size_env is not None else None
+REALTIME_CREDENTIAL_RESOLUTION_TIMEOUT_SECONDS: Final = float(
+ os.getenv("REALTIME_CREDENTIAL_RESOLUTION_TIMEOUT_SECONDS", "20.0")
+)
+ # RFC 6455 caps the close frame payload at 125 bytes, 2 of which carry the status code
+ WEBSOCKET_CLOSE_REASON_MAX_BYTES: Final = 123
+
# SSL/TLS cipher configuration for faster handshakes
# Strategy: Strongly prefer fast modern ciphers, but allow fallback to commonly supported ones
# This balances performance with broad compatibility