mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2026-04-29 14:34:26 +08:00
Compare commits
2 Commits
fbc68fa776
...
v2.15.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63ab83c3c8 | ||
|
|
268cf3b606 |
@@ -223,6 +223,11 @@ export function stream(
|
|||||||
)
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let content = res.data || res?.statusText;
|
let content = res.data || res?.statusText;
|
||||||
|
// hotfix #5614
|
||||||
|
content =
|
||||||
|
typeof content === "string"
|
||||||
|
? content
|
||||||
|
: JSON.stringify(content);
|
||||||
if (res.status >= 300) {
|
if (res.status >= 300) {
|
||||||
return Promise.reject(content);
|
return Promise.reject(content);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user