mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-25 07:04:44 +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:
@@ -2,7 +2,16 @@ install:
|
||||
uv sync
|
||||
|
||||
dev:
|
||||
uvx --refresh --from "langgraph-cli[inmem]" --with-editable . --python 3.12 langgraph dev --no-browser --allow-blocking
|
||||
uv run langgraph dev --no-browser --allow-blocking
|
||||
|
||||
gateway:
|
||||
uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8000 --reload
|
||||
|
||||
serve:
|
||||
@trap 'kill 0' EXIT; \
|
||||
uv run langgraph dev --no-browser --allow-blocking & \
|
||||
sleep 3 && uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8000 --reload & \
|
||||
wait
|
||||
|
||||
lint:
|
||||
uvx ruff check .
|
||||
|
||||
Reference in New Issue
Block a user