-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
⚠️ Check for existing issues before proceeding. ⚠️
- I have searched the existing issues, and there is no existing issue for my problem
Where are you using SuperAGI?
Linux
Which branch of SuperAGI are you using?
Main
Do you use OpenAI GPT-3.5 or GPT-4?
GPT-3.5
Which area covers your issue best?
Installation and setup
Describe your issue.
File auth.py:
-
Add Request Class import:
from fastapi import Request, Depends, HTTPException, Header, Security, status -
FastAPI does not need to extra wrap Request. It's autoinjected:
def get_current_user(request: Request, Authorize: AuthJWT = Depends(check_auth)):
How to replicate your Issue?
No response
Upload Error Log Content
- File "/app/superagi/helper/auth.py", line 47, in def get_current_user(Authorize: AuthJWT = Depends(check_auth), request: Request = Depends()): NameError: name 'Request' is not defined; 2) AssertionError: Cannot specify
Dependsfor type <class 'starlette.requests.Request'>
Metadata
Metadata
Assignees
Labels
No labels