mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
Merge pull request #6185 from siliconflow/larger_timeout_for_siliconflow
Larger timeout for SiliconFlow
This commit is contained in:
commit
4273aa0803
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user