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 linting
harish-berrib6e13cb70abb
diff --git a/litellm/proxy/common_utils/user_api_key_cache.py b/litellm/proxy/common_utils/user_api_key_cache.pyindex 2eebc291bb0..7c42aa545d0 100644--- a/litellm/proxy/common_utils/user_api_key_cache.py+++ b/litellm/proxy/common_utils/user_api_key_cache.py@@ -57,7 +57,9 @@ class UserApiKeyCache(DualCache):def set_cache(self, key, value, local_only: bool = False, **kwargs): # type: ignore[override]model_type = cast(Optional[Type[BaseModel]], kwargs.pop("model_type", None))payload = CacheCodec.serialize(value, model_type=model_type)- return super().set_cache(key=key, value=payload, local_only=local_only, **kwargs)+ return super().set_cache(+ key=key, value=payload, local_only=local_only, **kwargs+ )async def async_set_cache(self, key, value, local_only: bool = False, **kwargs): # type: ignore[override]model_type = cast(Optional[Type[BaseModel]], kwargs.pop("model_type", None))