Skip to content

Commit

Permalink
Update siliconflow.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper committed Feb 8, 2025
1 parent bf265d3 commit 2a3996e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/client/platforms/siliconflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a3996e

Please sign in to comment.