mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 09:23:57 +08:00
hotfix for plugin runtime
This commit is contained in:
@@ -222,7 +222,10 @@ export function stream(
|
||||
),
|
||||
)
|
||||
.then((res) => {
|
||||
const content = JSON.stringify(res.data);
|
||||
let content = res.data;
|
||||
try {
|
||||
content = JSON.stringify(res.data);
|
||||
} catch (e) {}
|
||||
if (res.status >= 300) {
|
||||
return Promise.reject(content);
|
||||
}
|
||||
|
Reference in New Issue
Block a user