forked from phoenix/litellm-mirror
fix(proxy_server.py): fix argon import
This commit is contained in:
parent
eca2889c96
commit
4b64e506f4
2 changed files with 2 additions and 4 deletions
|
@ -9,9 +9,6 @@ import warnings
|
||||||
import importlib
|
import importlib
|
||||||
import warnings
|
import warnings
|
||||||
import backoff
|
import backoff
|
||||||
from argon2 import PasswordHasher
|
|
||||||
|
|
||||||
ph = PasswordHasher()
|
|
||||||
|
|
||||||
|
|
||||||
def showwarning(message, category, filename, lineno, file=None, line=None):
|
def showwarning(message, category, filename, lineno, file=None, line=None):
|
||||||
|
@ -38,6 +35,7 @@ try:
|
||||||
import orjson
|
import orjson
|
||||||
import logging
|
import logging
|
||||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||||
|
from argon2 import PasswordHasher
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
raise ImportError(f"Missing dependency {e}. Run `pip install 'litellm[proxy]'`")
|
raise ImportError(f"Missing dependency {e}. Run `pip install 'litellm[proxy]'`")
|
||||||
|
|
||||||
|
@ -237,6 +235,7 @@ user_headers = None
|
||||||
user_config_file_path = f"config_{int(time.time())}.yaml"
|
user_config_file_path = f"config_{int(time.time())}.yaml"
|
||||||
local_logging = True # writes logs to a local api_log.json file for debugging
|
local_logging = True # writes logs to a local api_log.json file for debugging
|
||||||
experimental = False
|
experimental = False
|
||||||
|
ph = PasswordHasher()
|
||||||
#### GLOBAL VARIABLES ####
|
#### GLOBAL VARIABLES ####
|
||||||
llm_router: Optional[litellm.Router] = None
|
llm_router: Optional[litellm.Router] = None
|
||||||
llm_model_list: Optional[list] = None
|
llm_model_list: Optional[list] = None
|
||||||
|
|
|
@ -50,7 +50,6 @@ proxy = [
|
||||||
"fastapi-sso",
|
"fastapi-sso",
|
||||||
"PyJWT",
|
"PyJWT",
|
||||||
"python-multipart",
|
"python-multipart",
|
||||||
"argon2-cffi"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
extra_proxy = [
|
extra_proxy = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue