新增一个简易的AI机器人

This commit is contained in:
李寻欢
2023-11-13 13:32:42 +08:00
parent d08937563a
commit 60bfa0e8a0
8 changed files with 81 additions and 2 deletions

9
config/ai.go Normal file
View 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地址
}

View File

@@ -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