mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix opt-out of litellm client
This commit is contained in:
parent
7aa04caaac
commit
01a399f8b5
2 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ def client(original_function):
|
|||
): # just run once to check if user wants to send their data anywhere - PostHog/Sentry/Slack/etc.
|
||||
try:
|
||||
global callback_list, add_breadcrumb, user_logger_fn
|
||||
if litellm.client: # enable users to opt-out of the debugging dashboard by setting `litellm.client = False`
|
||||
if litellm.use_client: # enable users to opt-out of the debugging dashboard by setting `litellm.client = False`
|
||||
if litellm.email is not None or os.getenv("LITELLM_EMAIL", None) is not None or litellm.token is not None or os.getenv("LITELLM_TOKEN", None): # add to input, success and failure callbacks if user is using hosted product
|
||||
get_all_keys()
|
||||
if "lite_debugger" not in callback_list:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue