mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) make print_verbose non blocking
This commit is contained in:
parent
2da50087b0
commit
762f28e4d7
7 changed files with 37 additions and 16 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue