fix: add skipNotify option to handle error notifications in SSE stream

This commit is contained in:
sheldon guo 2025-02-13 16:01:03 +08:00
parent 5393e3ddd8
commit 2137af619d

View File

@ -54,6 +54,7 @@ export const startMsgSSEStreamWithRetry: () => () => void = () => {
},
responseType: 'stream',
adapter: 'fetch',
skipNotify: (error) => (!error || !error.message ? true : false),
});
if (!res?.data) return;
const stream = res.data;