|
@@ -491,7 +491,7 @@ public class GRPCController extends BaseController {
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
String sessionId = chatReq.getSessionId();
|
|
|
int isStrong = Objects.isNull(chatReq.getIsStrong()) ? 0 : chatReq.getIsStrong();
|
|
|
- String tools = "true";//问答因为不确认是否走工具,所以传true; 但是工单一定是走工具的,传工具名称
|
|
|
+ String tools = STR_TRUE;//问答因为不确认是否走工具,所以传true; 但是工单一定是走工具的,传工具名称
|
|
|
boolean useRag = true;//只有问答才传true,其他默认都false
|
|
|
//如果是工单,需要特殊处理一下showVal和question
|
|
|
if(1 == module){
|
|
@@ -582,7 +582,7 @@ public class GRPCController extends BaseController {
|
|
|
//2024年7月27日18:13:47 前端传过来tools
|
|
|
String toolsReq = chatReq.getTools();
|
|
|
//2024年7月29日14:20:22 先判断是不是走本地工具,再判断前端工具
|
|
|
- if(StringUtils.isBlank(tools)){
|
|
|
+ if(StringUtils.isBlank(tools) || STR_TRUE.equals(tools)){
|
|
|
if(StringUtils.isNotBlank(toolsReq)){
|
|
|
useRag = false;//2024年7月27日18:20:23 走本地工具,不需要文本增强
|
|
|
isStrong = 0;
|