支持本地 geekai service api

This commit is contained in:
GeekMaster
2025-08-25 17:38:49 +08:00
parent 536b4b8056
commit d9a177864d

View File

@@ -1,5 +1,7 @@
package types
import "os"
// * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// * Copyright 2023 The Geek-AI Authors. All rights reserved.
// * Use of this source code is governed by a Apache-2.0 license
@@ -8,7 +10,13 @@ package types
// * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// GeekAI 增值服务
const GeekAPIURL = "https://sapi.geekai.me"
var GeekAPIURL = "https://sapi.geekai.me"
func init() {
if os.Getenv("GEEK_API_URL") != "" {
GeekAPIURL = os.Getenv("GEEK_API_URL")
}
}
// CaptchaConfig 行为验证码配置
type CaptchaConfig struct {