Release v1.4.7 with unlimited default timeout

This commit is contained in:
lutc5
2026-05-06 16:29:35 +08:00
parent fe1d5b5348
commit 22f793c188
13 changed files with 73 additions and 25 deletions

View File

@@ -922,7 +922,7 @@ func defaultConfig() service.Config {
Model: "kmodel",
ShellType: defaultShellType(),
SessionMode: service.SessionModeAuto,
Timeout: 300 * time.Second,
Timeout: 0,
RemoteFallbackEnabled: true,
RemoteFallbackModels: service.DefaultRemoteFallbackModels(),
}
@@ -1000,7 +1000,7 @@ func defaultConfig() service.Config {
if fileCfg.SessionMode != "" {
cfg.SessionMode = service.SessionMode(fileCfg.SessionMode)
}
if fileCfg.TimeoutSeconds > 0 {
if fileCfg.TimeoutSeconds >= 0 {
cfg.Timeout = time.Duration(fileCfg.TimeoutSeconds) * time.Second
}
if fileCfg.RemoteFallbackEnabled != nil {

View File

@@ -252,7 +252,7 @@ onUnmounted(() => {
<span class="status-dot" :class="{ running: status.running }"></span>
<div>
<strong>{{ status.running ? 'Proxy Running' : 'Proxy Stopped' }}</strong>
<small>v1.4.6</small>
<small>v1.4.7</small>
</div>
</div>
</aside>

View File

@@ -318,7 +318,7 @@ onUnmounted(() => {
</div>
<div class="config-summary-item">
<label>超时</label>
<strong>{{ config.Timeout || 120 }} </strong>
<strong>{{ config.Timeout > 0 ? `${config.Timeout}` : '不限制' }}</strong>
</div>
<div class="config-summary-item span-2">
<label>工作目录</label>

View File

@@ -163,12 +163,13 @@ async function save() {
</div>
<div class="field">
<label>超时秒数</label>
<input v-model.number="config.Timeout" type="number" min="1" />
<input v-model.number="config.Timeout" type="number" min="0" />
<small>0 表示不设置代理层单次请求超时适合长流程任务</small>
</div>
<div class="field span-2 switch-field">
<div>
<label>远端超时兜底</label>
<p>远端 API 超时限流或 5xx 且尚未流式输出时自动切换到下一个可用模型</p>
<p>设置正数超时后远端 API 超时限流或 5xx 且尚未流式输出时自动切换到下一个可用模型</p>
</div>
<label class="switch">
<input v-model="config.RemoteFallbackEnabled" type="checkbox" />

View File

@@ -11,6 +11,6 @@
"email": "lutc5@asiainfo.com"
},
"info": {
"productVersion": "1.4.6"
"productVersion": "1.4.7"
}
}