Merge branch 'dev' into hugo
This commit is contained in:
commit
3d4b2647ae
21 files changed
+491
-158
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