gitea获取diff更改 dockerfile更改 日志输出至文件

This commit is contained in:
Hua
2025-04-29 11:30:15 +08:00
parent e5cf1c348c
commit 5a3117dc72
8 changed files with 220 additions and 65 deletions

View File

@ -45,6 +45,7 @@ func (c *Client) Chat(systemMsg, prompt string) (string, error) {
var response string
var err error
log.Printf("AImodel=%s, prompt=%s", c.model, prompt)
if c.aiType == "ollama" {
response, err = c.ollamaChat(systemMsg, prompt)
} else {