fix(proxy_server.py): fixing import issues

This commit is contained in:
Krrish Dholakia 2023-11-05 21:14:59 -08:00
parent 21ae940992
commit 1b87e5a337
4 changed files with 0 additions and 3 deletions

Binary file not shown.

BIN
dist/litellm-0.13.2.dev1.tar.gz vendored Normal file

Binary file not shown.

View file

@ -176,7 +176,6 @@ def run_server(host, port, api_base, api_version, model, alias, add_key, headers
if port == 8000 and is_port_in_use(port):
port = random.randint(1024, 49152)
print(os.listdir(os.getcwd()))
uvicorn.run("litellm.proxy.proxy_server:app", host=host, port=port, workers=num_workers)

View file

@ -130,7 +130,6 @@ worker_config = None
#### HELPER FUNCTIONS ####
def print_verbose(print_statement):
global user_debug
print(f"user debug value: {user_debug}")
if user_debug:
print(print_statement)
@ -533,7 +532,6 @@ def litellm_completion(*args, **kwargs):
for key, value in m["litellm_params"].items():
kwargs[key] = value
break
print(f"litellm set verbose pre-call: {litellm.set_verbose}")
if call_type == "chat_completion":
response = litellm.completion(*args, **kwargs)
elif call_type == "text_completion":