forked from phoenix/litellm-mirror
build(litellm_server/main.py): adding print_verbose for better logging
This commit is contained in:
parent
6fdca38442
commit
80c9c58f88
2 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,10 @@
|
|||
import os, litellm
|
||||
import pkg_resources
|
||||
|
||||
def print_verbose(print_statement):
|
||||
if os.environ["SET_VERBOSE"] == True:
|
||||
print(print_statement)
|
||||
|
||||
def get_package_version(package_name):
|
||||
try:
|
||||
package = pkg_resources.get_distribution(package_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue