生产SOP查询PLM相关信息及删除JAVA相关包
This commit is contained in:
1 parent
92018f3366
commit
01c8b0320f
5 files changed
+296
-86
No files matched your search
@@ -604,8 +604,11 @@ def chat_completions():
|
||||
return jsonify({'error': 'Missing user or agent context'}), 500
|
||||
|
||||
from app.services.dify import DifyService
|
||||
from app.services.plm_oracle import PLMOracleService
|
||||
|
||||
if kb_type == 'ERP知识库':
|
||||
if PLMOracleService.supports(query, agent):
|
||||
generator = PLMOracleService.stream_chat(query, user, agent, conversation_id)
|
||||
elif kb_type == 'ERP知识库':
|
||||
from app.services.hr_leave_sqlserver import HRLeaveSQLServerService
|
||||
from app.services.text2sql import Text2SQLService
|
||||
|
||||
|
||||
Reference in new issue
Block a user