Files
eino_learn/config.yaml
lirui 5632bf88f8 feat: 添加配置文件支持并重构聊天模块
- 新增config.yaml和config.go用于管理配置
- 重构chatmodel.go使用配置初始化模型
- 修改GenerateChatMessage和ChatStream函数签名添加context参数
- 更新main.go加载配置并初始化聊天模型
- 优化错误处理和日志输出
2026-01-11 20:32:41 +08:00

6 lines
120 B
YAML

openai:
base_url: "https://api-proxy.meowrain.cn/ai/v1"
model: "deepseek-v3.2"
api_key: "meowrain"
timeout: 30s