From 451b1a5fe08c9e419238c2099b3065fac2389791 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 13 Apr 2024 17:17:07 -0700 Subject: [PATCH] fix - instantly propogate langfuse callback shange --- litellm/proxy/proxy_server.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index c376437bb98..6b73a392056 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -8123,7 +8123,7 @@ async def update_config(config_info: ConfigYAML): Currently supports modifying General Settings + LiteLLM settings """ - global llm_router, llm_model_list, general_settings, proxy_config, proxy_logging_obj, master_key + global llm_router, llm_model_list, general_settings, proxy_config, proxy_logging_obj, master_key, prisma_client try: import base64 @@ -8191,6 +8191,12 @@ async def update_config(config_info: ConfigYAML): # Save the updated config await proxy_config.save_config(new_config=config) + # make sure the change is instantly rolled out for langfuse + if prisma_client is not None: + await proxy_config.add_deployment( + prisma_client=prisma_client, proxy_logging_obj=proxy_logging_obj + ) + # Test new connections ## Slack if "slack" in config.get("general_settings", {}).get("alerting", []):