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
Merge pull request #35436 from BerriAI/litellm_redis_pubsub_config_sync
Mateo Wang9161e3ba67e1
diff --cc litellm/proxy/management_endpoints/key_management_endpoints.pyindex b910eee7130,1fbfda8bf8a..c336e9321e0--- a/litellm/proxy/management_endpoints/key_management_endpoints.py+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py@@@ -4304,9 -4244,10 +4308,10 @@@ async def _rotate_master_keyawait tx.litellm_proxymodeltable.create_many(data=new_models,)+ await publish_config_change(redis_cache=coordination_redis_cache(), object_type="litellm_proxymodeltable")# 3. process config tabletry:- config = await ConfigRepository(prisma_client).table.find_many()+ config = await _config_table(prisma_client).find_many()except Exception:config = Nonediff --cc litellm/proxy/management_endpoints/model_management_endpoints.pyindex 4885ec42578,caf81feff32..f43c62b68b9--- a/litellm/proxy/management_endpoints/model_management_endpoints.py+++ b/litellm/proxy/management_endpoints/model_management_endpoints.py@@@ -38,8 -38,11 +38,12 @@@ from litellm.proxy._types importUserAPIKeyAuth,)from litellm.proxy.auth.user_api_key_auth import user_api_key_auth+ from litellm.proxy.common_utils.config_sync_pubsub import (+ coordination_redis_cache,+ publish_config_change,+ )from litellm.proxy.common_utils.encrypt_decrypt_utils import encrypt_value_helper+from litellm.proxy.common_utils.user_api_key_cache import UserApiKeyCachefrom litellm.proxy.management_endpoints.common_utils import _is_user_team_adminfrom litellm.proxy.management_endpoints.team_endpoints import (_refresh_cached_team,