feat: 支持设置流模式超时时间

This commit is contained in:
CalciumIon
2024-06-27 17:17:23 +08:00
parent d1778bb20a
commit fc6ae6bf34
4 changed files with 31 additions and 1 deletions

View File

@@ -1,9 +1,13 @@
package constant
import "one-api/common"
var ServerAddress = "http://localhost:3000"
var WorkerUrl = ""
var WorkerValidKey = ""
var StreamingTimeout = common.GetOrDefault("STREAMING_TIMEOUT", 30)
func EnableWorker() bool {
return WorkerUrl != ""
}