Commit 3844bfb4d5f83828dad16867bc8c5b93e7eed26a
1 parent
262f1b7c
添加未清选择 改成动态引导语
Showing
1 changed file
with
5 additions
and
2 deletions
src/main/java/com/xly/service/XlyErpService.java
| ... | ... | @@ -355,8 +355,11 @@ public class XlyErpService { |
| 355 | 355 | && ObjectUtil.isNotEmpty(session.getCurrentTool().getSInputTabelName()) |
| 356 | 356 | && ObjectUtil.isNotEmpty(session.getCurrentTool().getSStructureMemo())) |
| 357 | 357 | ){ |
| 358 | - String sSystemPrompt = session.getCurrentTool().getBQuo()?AgentSystemPrompt.sSystemPromptQuo:AgentSystemPrompt.sSystemPrompt; | |
| 359 | - sSystemPrompt = StrUtil.format(sSystemPrompt,session.getCurrentTool().getSKnowledgeBase()); | |
| 358 | + String sSystemPrompt =AgentSystemPrompt.sSystemPrompt; | |
| 359 | + if(ObjectUtil.isNotEmpty(session) && ObjectUtil.isNotEmpty(session.getCurrentTool())&&session.getCurrentTool().getBQuo()){ | |
| 360 | + sSystemPrompt =AgentSystemPrompt.sSystemPromptQuo; | |
| 361 | + sSystemPrompt = StrUtil.format(sSystemPrompt,session.getCurrentTool().getSKnowledgeBase()); | |
| 362 | + } | |
| 360 | 363 | //如果客户输入了确认/生成 切换引导语言 |
| 361 | 364 | if(ObjectUtil.isNotEmpty(session.getSSystemPrompt()) && isConfirmed){ |
| 362 | 365 | sSystemPrompt = session.getSSystemPrompt(); | ... | ... |