From 451b1a5fe08c9e419238c2099b3065fac2389791 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 13 Apr 2024 17:17:07 -0700 Subject: [PATCH 1/2] 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", []): From dbe3cf81ebc86c6af3c88d7e9e779c4363243bdc Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 13 Apr 2024 17:24:31 -0700 Subject: [PATCH 2/2] fix - show default langfuse host value --- .../src/components/settings.tsx | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/ui/litellm-dashboard/src/components/settings.tsx b/ui/litellm-dashboard/src/components/settings.tsx index 28e273d2195..25ccb5070e2 100644 --- a/ui/litellm-dashboard/src/components/settings.tsx +++ b/ui/litellm-dashboard/src/components/settings.tsx @@ -147,8 +147,6 @@ const Settings: React.FC = ({ Callback Callback Env Vars - - {/* Test Callback */} @@ -159,29 +157,22 @@ const Settings: React.FC = ({
    - {Object.entries(callback.variables).map(([key, value]) => ( -
  • - {key} - -
  • - ))} + {Object.entries(callback.variables).map(([key, value]) => ( +
  • + {key} + {key === "LANGFUSE_HOST" ? ( +

    default value="https://cloud.langfuse.com"

    + ) : ( +
    + )} + +
  • +))}
-
- - - - - - - - @@ -192,6 +183,7 @@ const Settings: React.FC = ({ +