mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: print error
This commit is contained in:
parent
ff69d2e963
commit
877b91c765
2 changed files with 2 additions and 0 deletions
|
|
@ -286,6 +286,7 @@ var ChatGPTAPI = /** @class */ (function () {
|
|||
}
|
||||
else {
|
||||
res_1 = response;
|
||||
console.error(res_1)
|
||||
return [2 /*return*/, reject(new Error("OpenAI error: ".concat(((_b = res_1 === null || res_1 === void 0 ? void 0 : res_1.detail) === null || _b === void 0 ? void 0 : _b.message) || (res_1 === null || res_1 === void 0 ? void 0 : res_1.detail) || 'unknown')))];
|
||||
}
|
||||
result.detail = response;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue