Update siliconflow.ts

This commit is contained in:
Shenghang Tsai 2025-02-08 14:38:12 +08:00
parent bf265d3375
commit 2a3996e0d6
1 changed files with 4 additions and 4 deletions

View File

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