diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 77d96c48f4..55518141d5 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -675,7 +675,7 @@ class ProxyConfig: # users can pass os.environ/ variables on the proxy - we should read them from the env for key, value in cache_params.items(): - if value.startswith("os.environ/"): + if type(value) is str and value.startswith("os.environ/"): cache_params[key] = litellm.get_secret(value) ## to pass a complete url, or set ssl=True, etc. just set it as `os.environ[REDIS_URL] = `, _redis.py checks for REDIS specific environment variables