Merge pull request #6185 from siliconflow/larger_timeout_for_siliconflow

Larger timeout for SiliconFlow
This commit is contained in:
RiverRay 2025-02-08 23:39:49 +08:00 committed by GitHub
commit 4273aa0803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -121,10 +121,10 @@ export class SiliconflowApi implements LLMApi {
// console.log(chatPayload);
// make a fetch request
const requestTimeoutId = setTimeout(
() => controller.abort(),
REQUEST_TIMEOUT_MS,
);
const requestTimeoutId = setTimeout(() => {
console.error("[Request] SiliconFlow API timeout");
controller.abort();
}, 10 * REQUEST_TIMEOUT_MS);
if (shouldStream) {
const [tools, funcs] = usePluginStore