mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 03:16:48 +08:00
案例专家:是否深度思考做成入参,先关闭思考
This commit is contained in:
@@ -18,4 +18,10 @@ public class CaseAiChatDto {
|
||||
* 提问内容
|
||||
*/
|
||||
private String query;
|
||||
|
||||
/**
|
||||
* 是否开启思考
|
||||
* 0-否 1-是
|
||||
*/
|
||||
private Integer enableThinking;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@EnableConfigurationProperties({CaseAiProperties.class})
|
||||
@@ -106,7 +107,7 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
|
||||
chatParam.put("kIds", kIds);
|
||||
chatParam.put("query", caseAiChatDto.getQuery());
|
||||
chatParam.put("conversationId", conversationId);
|
||||
chatParam.put("enableThinking", true);
|
||||
chatParam.put("enableThinking", Objects.equals(caseAiChatDto.getEnableThinking(), 1));
|
||||
String chatParamStr = chatParam.toJSONString();
|
||||
log.info("案例问答接口请求参数: [{}]", chatParamStr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user