fix litellm client

This commit is contained in:
Krrish Dholakia 2023-09-07 16:21:58 -07:00
parent 8f5e2d0013
commit e452ceb21e
4 changed files with 8 additions and 3 deletions

View file

@ -1051,6 +1051,10 @@ def set_callbacks(callback_list, function_id=None):
print_verbose(f"instantiating lite_debugger")
if function_id:
liteDebuggerClient = LiteDebugger(email=function_id)
elif litellm.token:
liteDebuggerClient = LiteDebugger(email=litellm.token)
elif litellm.email:
liteDebuggerClient = LiteDebugger(email=litellm.email)
except Exception as e:
raise e