mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-10 19:23:42 +08:00
支持添加多个 ChatGPT API 代理地址
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
type Config struct {
|
||||
Listen string
|
||||
Session Session
|
||||
ProxyURL string
|
||||
ProxyURL []string
|
||||
Chat Chat
|
||||
EnableAuth bool // 是否开启鉴权
|
||||
Tokens []string // 授权的白名单列表 TODO: 后期要存储到 LevelDB 或者 Mysql 数据库
|
||||
@@ -43,7 +43,8 @@ type Session struct {
|
||||
|
||||
func NewDefaultConfig() *Config {
|
||||
return &Config{
|
||||
Listen: "0.0.0.0:5678",
|
||||
Listen: "0.0.0.0:5678",
|
||||
ProxyURL: make([]string, 0),
|
||||
|
||||
Session: Session{
|
||||
SecretKey: utils.RandString(64),
|
||||
|
||||
Reference in New Issue
Block a user