mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 20:34:45 +08:00
feat: add gateway module with FastAPI server (#5)
* chore: add .claude/ to .gitignore Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: add gateway module with FastAPI server - Add new gateway module with FastAPI app for API routing - Add gateway and serve commands to Makefile - Add fastapi, httpx, uvicorn, sse-starlette dependencies - Fix model config retrieval in lead_agent (support both model_name and model) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,7 @@ export async function DELETE(
|
||||
}
|
||||
|
||||
async function handleProxy(request: NextRequest, pathSegments: string[]) {
|
||||
const targetUrl = `http://localhost:2024/${pathSegments.join("/")}`;
|
||||
const targetUrl = `http://localhost:8000/${pathSegments.join("/")}`;
|
||||
|
||||
// Preserve query parameters
|
||||
const searchParams = request.nextUrl.searchParams.toString();
|
||||
|
||||
Reference in New Issue
Block a user