fix: response

This commit is contained in:
archer 2023-05-02 14:56:12 +08:00
parent a409db9578
commit 89234c197c
No known key found for this signature in database
GPG Key ID: 569A5660D2379E28

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