ITADN

ImportError and incorrect Depends usage for `Request` in helper/auth.py

#1471OpenRaihan2511 创建于 2025-07-01
R
Raihan2511commented
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 条评论