mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 02:03:42 +08:00
refactor: 完成管理后台的系统设置页面重构
This commit is contained in:
@@ -137,8 +137,7 @@ func authorizeMiddleware(s *AppServer) gin.HandlerFunc {
|
||||
if c.Request.URL.Path == "/api/user/login" ||
|
||||
c.Request.URL.Path == "/api/admin/login" ||
|
||||
c.Request.URL.Path == "/api/user/register" ||
|
||||
c.Request.URL.Path == "/api/apikey/add" ||
|
||||
c.Request.URL.Path == "/api/apikey/list" {
|
||||
c.Request.URL.Path == "/api/config/get" {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -49,6 +49,4 @@ type SystemConfig struct {
|
||||
UserInitCalls int `json:"user_init_calls"` // 新用户注册默认总送多少次调用
|
||||
}
|
||||
|
||||
var GptModels = []string{"gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613", "gpt-4", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0613"}
|
||||
|
||||
const UserInitCalls = 1000
|
||||
|
||||
Reference in New Issue
Block a user