完成 Token 点卡功能

This commit is contained in:
RockYang
2023-03-28 10:17:36 +08:00
parent 5f702d92dc
commit d85e91a8da
7 changed files with 59 additions and 62 deletions

View File

@@ -11,8 +11,10 @@ import (
func NewDefaultConfig() *types.Config {
return &types.Config{
Listen: "0.0.0.0:5678",
ProxyURL: make([]string, 0),
Listen: "0.0.0.0:5678",
ProxyURL: make([]string, 0),
EnableAuth: true,
AccessKey: "yangjian102621@gmail.com",
Session: types.Session{
SecretKey: RandString(64),
@@ -32,7 +34,6 @@ func NewDefaultConfig() *types.Config {
Temperature: 0.9,
EnableContext: true,
},
EnableAuth: true,
}
}