chat接口使用sse

This commit is contained in:
lijun 2025-09-23 20:47:01 +08:00
parent 66c345e788
commit a6312198c3
1 changed files with 0 additions and 3 deletions

View File

@ -635,9 +635,6 @@ const sendMessageWithFileUseSSE = async () => {
}, },
body: JSON.stringify(end_msg), // body: JSON.stringify(end_msg), //
openWhenHidden: true, // openWhenHidden: true, //
onopen: () => {
console.log('SSE connection established');
},
onmessage: (event) => { onmessage: (event) => {
try { try {
doReceiveMessageSSE(event); doReceiveMessageSSE(event);