chatgpt-java icon indicating copy to clipboard operation
chatgpt-java copied to clipboard

SseEmitter 问题

Open weirantongxue opened this issue 3 months ago • 0 comments

请问一下大佬在 项目中使用SseEmitter的时候把SseEmitter传入到new 的GPTEventSourceListener 中,使用 sseEmitter.send(SseEmitter.event() .id(messageId) .name(EventNameType.ADD.getCode()) .data(completionResponse.getChoices().get(0).getDelta().getContent()) .reconnectTime(3000));发送数据 的时候使用postmain调试无法收到消息.但是我在new GPTEventSourceListener 之前尝试发送 是可以收到的 或者之后也可以就是在GPTEventSourceListener 发不出去

weirantongxue avatar Mar 13 '24 04:03 weirantongxue