Commit 47e01903 authored by 赵啸非's avatar 赵啸非

修改配置文件

parent 854af735
......@@ -48,7 +48,7 @@ public class ChatMsgRspThread implements Runnable {
JSONObject delta = new JSONObject();
delta.put("role", "");
if(reCount == 0){
if (reCount == 0) {
delta.put("role", "assistant");
}
delta.put("content", "");
......@@ -61,6 +61,8 @@ public class ChatMsgRspThread implements Runnable {
rspJson.put("choices", jsonArray);
rspJson.put("object", "");
log.info("快速响应线程写入数据,rsp:{}", rspJson.toJSONString());
context.getEmitter().next(rspJson.toJSONString());
reCount++;
try {
......
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