mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(fix) make print_verbose non blocking
This commit is contained in:
parent
d2a53f05ed
commit
f744445db4
7 changed files with 37 additions and 16 deletions
|
@ -13,9 +13,12 @@ class BudgetManager:
|
|||
self.load_data()
|
||||
|
||||
def print_verbose(self, print_statement):
|
||||
if litellm.set_verbose:
|
||||
import logging
|
||||
logging.info(print_statement)
|
||||
try:
|
||||
if litellm.set_verbose:
|
||||
import logging
|
||||
logging.info(print_statement)
|
||||
except:
|
||||
pass
|
||||
|
||||
def load_data(self):
|
||||
if self.client_type == "local":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue