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(auth_checks.py): set default user in-memory cache to 5s
Krrish Dholakiaf73fca297712
diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.pyindex 48e9787d00d..05a47dd359f 100644--- a/litellm/proxy/auth/auth_checks.py+++ b/litellm/proxy/auth/auth_checks.py@@ -726,7 +726,9 @@ async def get_user_object(response_dict = _response.model_dump()# save the user object to cache- await user_api_key_cache.async_set_cache(key=user_id, value=response_dict)+ await user_api_key_cache.async_set_cache(+ key=user_id, value=response_dict, ttl=DEFAULT_IN_MEMORY_TTL+ )# save to db access time_update_last_db_access_time(