✨ 新增一个简易的AI机器人
This commit is contained in:
9
config/ai.go
Normal file
9
config/ai.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package config
|
||||
|
||||
// ai
|
||||
// @description: AI配置
|
||||
type ai struct {
|
||||
Enable bool `json:"enable" yaml:"enable"` // 是否启用AI
|
||||
ApiKey string `json:"apiKey" yaml:"apiKey"` // API Key
|
||||
BaseUrl string `json:"baseUrl" yaml:"baseUrl"` // API地址
|
||||
}
|
||||
@@ -8,6 +8,7 @@ type Config struct {
|
||||
Task task `json:"task" yaml:"task"` // 定时任务配置
|
||||
MySQL mysql `json:"mysql" yaml:"mysql"` // MySQL 配置
|
||||
Wechat wechat `json:"wechat" yaml:"wechat"` // 微信助手
|
||||
Ai ai `json:"ai" yaml:"ai"` // AI配置
|
||||
}
|
||||
|
||||
// task
|
||||
|
||||
Reference in New Issue
Block a user