fix: response

This commit is contained in:
archer
2023-05-02 14:56:12 +08:00
parent a409db9578
commit 89234c197c

View File

@@ -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 = '';