wingbot 3.76.8 → 3.76.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ChatGpt.js +1 -1
package/package.json
CHANGED
package/src/ChatGpt.js
CHANGED
|
@@ -480,7 +480,7 @@ class ChatGpt {
|
|
|
480
480
|
|
|
481
481
|
if (status !== 200
|
|
482
482
|
|| !Array.isArray(responseData.choices)) {
|
|
483
|
-
throw new Error(`Chat GPT ${status}`);
|
|
483
|
+
throw new Error(`Chat GPT ${status}: ${responseText.slice(0, 200)}`);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
const [choice] = responseData.choices;
|