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
[Redis IAM] Change documentation (#13306)
Jugal D. Bhatt7524aa386c93
diff --git a/docs/my-website/docs/caching/all_caches.md b/docs/my-website/docs/caching/all_caches.mdindex 829511914fb..0548c331f80 100644--- a/docs/my-website/docs/caching/all_caches.md+++ b/docs/my-website/docs/caching/all_caches.md@@ -61,20 +61,6 @@ pip install google-cloud-iam```pythonimport litellmfrom litellm import completion-from litellm.caching.caching import Cache--# Using Redis Cache with GCP IAM Authentication-litellm.cache = Cache(- type="redis",- host="10.128.0.2", # Your GCP Redis IP- port=6379,- gcp_service_account="projects/-/serviceAccounts/[email protected]",- gcp_ssl_ca_certs="./server-ca.pem", # Path to SSL CA certificate- ssl=True,- ssl_cert_reqs=None, # For self-signed certificates- ssl_check_hostname=False, # For self-signed certificates-)-# For Redis Cluster with GCP IAMfrom litellm.caching.redis_cluster_cache import RedisClusterCache@@ -84,7 +70,6 @@ litellm.cache = RedisClusterCache({"host": "10.128.0.2", "port": 11008},],gcp_service_account="projects/-/serviceAccounts/[email protected]",- gcp_ssl_ca_certs="./server-ca.pem",ssl=True,ssl_cert_reqs=None,ssl_check_hostname=False,@@ -111,8 +96,7 @@ You can also set these as environment variables:export REDIS_HOST="10.128.0.2"export REDIS_PORT="6379"export REDIS_GCP_SERVICE_ACCOUNT="projects/-/serviceAccounts/[email protected]"-export REDIS_GCP_SSL_CA_CERTS="./server-ca.pem"-export REDIS_SSL="True"+export REDIS_SSL="False"```Then simply initialize:diff --git a/docs/my-website/docs/proxy/caching.md b/docs/my-website/docs/proxy/caching.mdindex 95d61ede2cb..1fb7385f689 100644--- a/docs/my-website/docs/proxy/caching.md+++ b/docs/my-website/docs/proxy/caching.md@@ -210,6 +210,10 @@ but we **don't** recommend using REDIS_URL in prod. We've noticed a performanceFor GCP Memorystore Redis with IAM authentication, install the required dependency:+:::info+IAM authentication for redis is only supported via GCP and only on Redis Clusters for now.+:::+```shellpip install google-cloud-iam```@@ -218,25 +222,6 @@ pip install google-cloud-iam<TabItem value="gcp-iam-config" label="Set on config.yaml">-```yaml-model_list:- - model_name: gpt-3.5-turbo- litellm_params:- model: gpt-3.5-turbo--litellm_settings:- cache: True- cache_params:- type: redis- host: "10.128.0.2" # Your GCP Redis IP- port: 6379- gcp_service_account: "projects/-/serviceAccounts/[email protected]"- gcp_ssl_ca_certs: "./server-ca.pem" # Path to SSL CA certificate- ssl: true- ssl_cert_reqs: null # For self-signed certificates- ssl_check_hostname: false # For self-signed certificates-```-For Redis Cluster with GCP IAM:```yaml@@ -246,7 +231,6 @@ litellm_settings:type: redisredis_startup_nodes: [{"host": "10.128.0.2", "port": 6379}, {"host": "10.128.0.2", "port": 11008}]gcp_service_account: "projects/-/serviceAccounts/[email protected]"- gcp_ssl_ca_certs: "./server-ca.pem"ssl: truessl_cert_reqs: nullssl_check_hostname: false@@ -258,15 +242,6 @@ litellm_settings:You can configure GCP IAM Redis authentication in your .env:-```env-REDIS_HOST="10.128.0.2"-REDIS_PORT="6379"-REDIS_GCP_SERVICE_ACCOUNT="projects/-/serviceAccounts/[email protected]"-REDIS_GCP_SSL_CA_CERTS="./server-ca.pem"-REDIS_SSL="True"-REDIS_SSL_CERT_REQS="None"-REDIS_SSL_CHECK_HOSTNAME="False"-```For Redis Cluster: