diff --git a/config.yaml b/config.yaml index 41e0fab6..2c020512 100644 --- a/config.yaml +++ b/config.yaml @@ -102,6 +102,7 @@ ai: models: - name: ChatGPT-4 model: gpt-4 + canManager: false - name: 讯飞星火v3.1 model: SparkDesk-v3.1 - name: 讯飞星火v3.5 @@ -116,8 +117,10 @@ ai: model: StepChat - name: 豆包Lite-4k model: Doubao-lite-4k + canManager: true - name: 豆包Pro-4k model: Doubao-pro-4k + canManager: true # 资源配置 # map[k]v结构,k 会变成全小写,所以这儿不能用大写字母 diff --git a/config/ai.go b/config/ai.go index cdc44a3d..7d987a2c 100644 --- a/config/ai.go +++ b/config/ai.go @@ -15,6 +15,7 @@ type ai struct { // aiModel // @description: AI模型 type aiModel struct { - Name string `json:"name" yaml:"name"` // 模型名称 - Model string `json:"dto" yaml:"dto"` // 模型代码 + Name string `json:"name" yaml:"name"` // 模型名称 + Model string `json:"dto" yaml:"dto"` // 模型代码 + CanManager bool `json:"canManager" yaml:"canManager"` // 是否可以在manager页面中选择 } diff --git a/views/manager-one.html b/views/manager-one.html index c44b5883..1e841bf8 100644 --- a/views/manager-one.html +++ b/views/manager-one.html @@ -53,7 +53,7 @@