forked from XiaoMo/ChatGPT-Next-Web
Merge pull request #1592 from sjnho/main
fix #1590 Render the whole stream response body
This commit is contained in:
commit
42711d76d6
@ -99,7 +99,9 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!res.ok ||
|
!res.ok ||
|
||||||
res.headers.get("content-type") !== EventStreamContentType ||
|
!res.headers
|
||||||
|
.get("content-type")
|
||||||
|
?.startsWith(EventStreamContentType) ||
|
||||||
res.status !== 200
|
res.status !== 200
|
||||||
) {
|
) {
|
||||||
const responseTexts = [responseText];
|
const responseTexts = [responseText];
|
||||||
|
Loading…
Reference in New Issue
Block a user