koishi-plugin-best-cave 2.7.22 → 2.7.23
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/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1345,7 +1345,7 @@ ${combinedText}` }, ...images];
|
|
|
1345
1345
|
"Content-Type": "application/json",
|
|
1346
1346
|
"Authorization": `Bearer ${this.config.aiApiKey}`
|
|
1347
1347
|
};
|
|
1348
|
-
const response = await this.http.post(fullUrl, payload, { headers, timeout:
|
|
1348
|
+
const response = await this.http.post(fullUrl, payload, { headers, timeout: 6e5 });
|
|
1349
1349
|
const content = response?.choices?.[0]?.message?.content;
|
|
1350
1350
|
if (typeof content !== "string" || !content.trim()) throw new Error();
|
|
1351
1351
|
try {
|