mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) install python-multipart if missing
This commit is contained in:
parent
9780589173
commit
069976daed
1 changed files with 5 additions and 0 deletions
|
@ -2972,6 +2972,11 @@ async def google_login(request: Request):
|
||||||
"/login", include_in_schema=False
|
"/login", include_in_schema=False
|
||||||
) # hidden since this is a helper for UI sso login
|
) # hidden since this is a helper for UI sso login
|
||||||
async def login(request: Request):
|
async def login(request: Request):
|
||||||
|
try:
|
||||||
|
import multipart
|
||||||
|
except ImportError:
|
||||||
|
subprocess.run(["pip", "install", "python-multipart"])
|
||||||
|
|
||||||
form = await request.form()
|
form = await request.form()
|
||||||
username = str(form.get("username"))
|
username = str(form.get("username"))
|
||||||
password = form.get("password")
|
password = form.get("password")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue