更新环境配置,添加gevent和gunicorn依赖;新增chat_dify_by_workorder.py文件以处理工单对话逻辑;优化PgSql类中的异常处理,确保连接失败时抛出异常;改进意图识别API,使用单例模式管理意图识别器实例,增强线程安全性;新增workflow_chat.py文件以支持新工作流对话功能。

This commit is contained in:
2025-06-05 10:52:31 +08:00
parent 01dc1c3c91
commit c715fca5ef
8 changed files with 784 additions and 42 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
OPENAI_API_KEY=sk-xxaiabmfhzwwpijuledllkmkzhzwsqeicjxmjwnvriqpwmpk
OPENAI_API_BASE=https://api.siliconflow.cn/v1/
LLM_MODEL_NAME=deepseek-ai/DeepSeek-V3
# LLM_MODEL_NAME=deepseek-ai/DeepSeek-R1
RERANKER_MODEL_NAME=bge-reranker-v2-m3