Release v1.4.7 with unlimited default timeout
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
"email": "lutc5@asiainfo.com"
|
||||
},
|
||||
"info": {
|
||||
"productVersion": "1.4.6"
|
||||
"productVersion": "1.4.7"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user