Commit 4122cde8 authored by luojun's avatar luojun

结束标识

parent 0785404c
Pipeline #6409 canceled with stages
......@@ -57,7 +57,13 @@ public class DeepSeekAiListener extends EventSourceListener {
MaxdbStreamResponse completionResponse = gson.fromJson(data, MaxdbStreamResponse.class);
if (completionResponse.getIsEnd()) {
log.info("DeepSeek返回数据结束了...onEvent");
textToSpeechService.convertTextToSpeech(this.stringBuffer.toString());
Map<String,Object> map = new HashMap<>();
map.put("action","done");
map.put("type","text");
map.put("content",completionResponse.getContent());
String msg = JSON.toJSONString(map);
this.session.getBasicRemote().sendText(msg);
// textToSpeechService.convertTextToSpeech(this.stringBuffer.toString());
return;
}
if (completionResponse.getContent()!=null){
......
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