fix: change default httptimeout

This commit is contained in:
Gabe
2025-11-03 01:15:47 +08:00
parent fd91bcf603
commit fd014a1d34
3 changed files with 3 additions and 3 deletions

View File

@@ -446,7 +446,7 @@ const defaultApi = {
resHook: "", // response 钩子函数
fetchLimit: DEFAULT_FETCH_LIMIT, // 最大请求数量
fetchInterval: DEFAULT_FETCH_INTERVAL, // 请求间隔时间
httpTimeout: DEFAULT_HTTP_TIMEOUT * 30, // 请求超时时间
httpTimeout: DEFAULT_HTTP_TIMEOUT * 3, // 请求超时时间
batchInterval: DEFAULT_BATCH_INTERVAL, // 批处理请求间隔时间
batchSize: DEFAULT_BATCH_SIZE, // 每次最多发送段落数量
batchLength: DEFAULT_BATCH_LENGTH, // 每次发送最大文字数量

View File

@@ -588,7 +588,7 @@ function ApiFields({ apiSlug, isUserApi, deleteApi }) {
name="httpTimeout"
value={httpTimeout}
onChange={handleChange}
min={5000}
min={1000}
max={60000}
/>
</Grid>

View File

@@ -260,7 +260,7 @@ export default function Settings() {
name="httpTimeout"
value={httpTimeout}
onChange={handleChange}
min={5000}
min={1000}
max={60000}
/>
</Grid>