refac: auth required for litellm in dev

This commit is contained in:
Timothy J. Baek 2024-03-20 19:33:27 -07:00
parent ed0d4b5a2a
commit 8e52ba8b91

View file

@ -47,7 +47,6 @@ async def auth_middleware(request: Request, call_next):
auth_header = request.headers.get("Authorization", "") auth_header = request.headers.get("Authorization", "")
request.state.user = None request.state.user = None
if ENV != "dev":
try: try:
user = get_current_user(get_http_authorization_cred(auth_header)) user = get_current_user(get_http_authorization_cred(auth_header))
print(user) print(user)