Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#6185 from siliconflow/larger_timeou…
Browse files Browse the repository at this point in the history
…t_for_siliconflow

Larger timeout for SiliconFlow
  • Loading branch information
Leizhenpeng authored Feb 8, 2025
2 parents bf265d3 + 2a3996e commit 4273aa0
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 4273aa0

Please sign in to comment.