deer-flow2本地启动(无make无nginx启动)

发布时间:2026/7/11 23:47:14

deer-flow2本地启动(无make无nginx启动) 1、环境配置python3.12nodejs22uv环境nodejs22可以通过exe程序安装自动完成pnpm安装pip install uv验证pnpm --versionuv --version2、更改配置1拷贝config.example.yaml为congif.yaml去掉一个模型配置为自己的api我这里配置为deepseek v3# Example: DeepSeek model (with thinking support) - name: deepseek-v3 display_name: DeepSeek V3 (Thinking) use: deerflow.models.patched_deepseek:PatchedChatDeepSeek model: deepseek-reasoner api_key: 自己的key max_tokens: 16384 supports_thinking: true supports_vision: false # DeepSeek V3 does not support vision when_thinking_enabled: extra_body: thinking: type: enabled2拷贝当前目录下.env.example为.env.local去掉跨域请求注释允许本地请求CORS_ORIGINShttp://localhost:30003cd frontend拷贝.env.example为.env.loca去掉这两个的注释NEXT_PUBLIC_BACKEND_BASE_URLhttp://localhost:8001NEXT_PUBLIC_LANGGRAPH_BASE_URLhttp://localhost:20243、启动后端cd backendend #添加当前目录为工作目录 $env:PYTHONPATH . # 创建环境 uv venv # 安装依赖 uv sync #启动 uv run uvicorn app.gateway.app:app --host 0.0.0.0 --port 8001另外开启一个窗口启动langgraph 2024端口服务uv run langgraph dev --no-browser --allow-blocking --no-reload4、启动前端cd frontend #安装依赖 pnpm install #启动 pnpm dev启动成功提示▲ Next.js 16.1.6 (Turbopack)- Local: http://localhost:3000- Network: http://192.168.0.103:3000- Environments: .env.local✓ Starting...✓ Ready in 10.9s○ Compiling /workspace/chats/[thread_id] ...访问http://localhost:3000/workspace/chats/new可以看到前端收到的是event块然后整块渐变增加的不是很连续。

相关新闻