mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix: response
This commit is contained in:
@@ -22,10 +22,6 @@ export const streamFetch = ({ url, data, onMessage, abortSignal }: StreamFetchPr
|
||||
const reader = res.body?.getReader();
|
||||
if (!reader) return;
|
||||
|
||||
if (res.status !== 200) {
|
||||
throw new Error(res.statusText);
|
||||
}
|
||||
|
||||
const decoder = new TextDecoder();
|
||||
let responseText = '';
|
||||
let systemPrompt = '';
|
||||
|
Reference in New Issue
Block a user