4.6.8 supplement (#831)
Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
This commit is contained in:
@@ -144,8 +144,12 @@ export const streamFetch = ({
|
||||
})();
|
||||
|
||||
if (event === sseResponseEventEnum.answer) {
|
||||
const answer: string = parseJson?.choices?.[0]?.delta?.content || '';
|
||||
remainText += answer;
|
||||
const text: string = parseJson?.choices?.[0]?.delta?.content || '';
|
||||
remainText += text;
|
||||
} else if (event === sseResponseEventEnum.response) {
|
||||
const text: string = parseJson?.choices?.[0]?.delta?.content || '';
|
||||
onMessage({ text });
|
||||
responseText += text;
|
||||
} else if (
|
||||
event === sseResponseEventEnum.moduleStatus &&
|
||||
parseJson?.name &&
|
||||
|
||||
Reference in New Issue
Block a user