The function stream_build was returning a JSONResponse with an error message when an exception was raised. This is not the correct way to handle errors in FastAPI. Instead, we should raise an HTTPException with the appropriate status code and error message. |
||
|---|---|---|
| .. | ||
| langflow | ||
| .gitignore | ||
| Dockerfile | ||