(fix) make print_verbose non blocking

This commit is contained in:
ishaan-jaff 2023-12-07 17:31:12 -08:00
parent 2da50087b0
commit 762f28e4d7
7 changed files with 37 additions and 16 deletions

View file

@ -2141,8 +2141,11 @@ def moderation(input: str, api_key: Optional[str]=None):
####### HELPER FUNCTIONS ################
## Set verbose to true -> ```litellm.set_verbose = True```
def print_verbose(print_statement):
if litellm.set_verbose:
print(print_statement) # noqa
try:
if litellm.set_verbose:
print(print_statement) # noqa
except:
pass
def config_completion(**kwargs):
if litellm.config_path != None: