- 从服务器拉取完整代码 - 按框架规范整理项目结构 - 配置 Drone CI 测试环境部署 - 包含后端(FastAPI)、前端(Vue3)、管理端 技术栈: Vue3 + TypeScript + FastAPI + MySQL
956 B
956 B
知识拆解工作流
工作流名称: upload_knowldge
功能: 上传资料并提炼知识点
配置信息
API端点:
URL: http://dify.ireborn.com.cn/v1/workflows/run
API Key: app-LZhZcMO6CiriLMOLB2PwUGHx
请求参数:
{
"inputs": {
"file": {
"type": "document",
"transfer_method": "local_file",
"upload_file_id": "dify_file_id"
},
"course_name": "课程名称",
"course_id": "1",
"material_id": "16"
},
"response_mode": "streaming",
"user": "kaopeilian"
}
实现方式
Streaming模式直接完成
- 使用
response_mode: "streaming" - 后端完整处理SSE流至
workflow_finished - 前端180秒超时,等待最终状态
- 无需轮询
状态映射
running→ 分析中succeeded→ 分析完成(刷新知识点)failed→ 分析失败stopped→ 分析已停止
最后更新: 2025-10-12