Commit f4d35759 authored by 赵灿灿's avatar 赵灿灿

修改传参

parent fed83df7
Pipeline #22579 passed with stages
in 4 minutes and 40 seconds
......@@ -439,10 +439,11 @@ public class LangChainController {
List<Map<String, Object>> finalHistoryList = historyList;
new Thread(() -> {
try {
for (int i = 0; i < 2; i++) {
for (int i = 0; i < 24; i++) {
String a="<a href='#tabs-1'>发起调度单</a>";
// 这里可以基于keyword, requestId, dialogId处理逻辑,但示例中仅发送简单事件
contentGet.append("当"+i);
emitter.send(SseEmitter.event().data("当"+i),MediaType.parseMediaType("application/json; charset=UTF-8"));
contentGet.append("");
emitter.send(SseEmitter.event().data(a.substring(i,i+1)),MediaType.parseMediaType("application/json; charset=UTF-8"));
Thread.sleep(1000); // 每秒发送一个事件
}
emitter.send(SseEmitter.event().data("stop"),MediaType.parseMediaType("application/json; charset=UTF-8"));
......@@ -889,7 +890,7 @@ public class LangChainController {
agentChatParams.setKeyword(chatMessage);
agentChatParams.setRequestId(getRequestId());
agentChatParams.setDialogId(dialogId);
agentChatParams.setHistory("5");
agentChatParams.setHistory(5);
AgentChatRequest agentChatRequest = new AgentChatRequest();
agentChatRequest.setCapabilityCode("a3a5a5efd03747faabc83a9424aae85b");//5386f9144ee042578d1c0f66c2598d06
agentChatRequest.setCapabilityType("2");
......
......@@ -43,5 +43,5 @@ public class AgentChatParams {
/**
* 多轮标记 选填 0不开启多轮,5.开启多轮,默认不开启
*/
private String history;
private int history;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment