ImportError and incorrect Depends usage for `Request` in helper/auth.py
There is an import error and incorrect use of FastAPI's Depends in superagi/helper/auth.py.
`Request` is used without importing it from fastapi.
`Request` is incorrectly wrapped in `Depends()`, which raises an AssertionError on startup.
This prevents the backend from starting in Docker.
**Suggested fix:**
- Add `from fastapi import Request` to the imports.
- Change the function signature to use `request: Request` without `Depends()`.
1 条评论