From ecb1f37667abd27823e1d95df5b1994d06b723fb Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 21 Aug 2023 08:46:28 -0700 Subject: [PATCH] add dashboard link in init --- docs/my-website/docs/debugging/hosted_debugging.md | 4 +++- litellm/integrations/litedebugger.py | 1 + pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/my-website/docs/debugging/hosted_debugging.md b/docs/my-website/docs/debugging/hosted_debugging.md index 478f92756e..5464a201ce 100644 --- a/docs/my-website/docs/debugging/hosted_debugging.md +++ b/docs/my-website/docs/debugging/hosted_debugging.md @@ -3,6 +3,8 @@ import Image from '@theme/IdealImage'; # Debugging Dashboard LiteLLM offers a free hosted debugger UI for your api calls (https://admin.litellm.ai/). Useful if you're testing your LiteLLM server and need to see if the API calls were made successfully. +**Needs litellm>=0.1.438*** + You can enable this setting `lite_debugger` as a callback. Dashboard @@ -11,7 +13,7 @@ See our live dashboard 👉 [admin.litellm.ai](https://admin.litellm.ai/) ## Setup -By default, your dashboard is viewable at `admin.litellm.ai/` +By default, your dashboard is viewable at `admin.litellm.ai/`. ``` ## Set your email diff --git a/litellm/integrations/litedebugger.py b/litellm/integrations/litedebugger.py index 0744280775..6ae9a1d81e 100644 --- a/litellm/integrations/litedebugger.py +++ b/litellm/integrations/litedebugger.py @@ -10,6 +10,7 @@ class LiteDebugger: def validate_environment(self): try: self.user_email = os.getenv("LITELLM_EMAIL") + print(f"Here's your free Dashboard 👉 {'https://admin.litellm.ai/' + self.user_email}") if self.user_email == None: raise Exception("[Non-Blocking Error] LiteLLMDebugger: Missing LITELLM_EMAIL. Set it in your environment. Eg.: os.environ['LITELLM_EMAIL']= ") except Exception as e: diff --git a/pyproject.toml b/pyproject.toml index c26906ae9b..5d45dcec3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "litellm" -version = "0.1.438" +version = "0.1.439" description = "Library to easily interface with LLM API providers" authors = ["BerriAI"] license = "MIT License"