feat: 增加AI生成页面功能。

This commit is contained in:
pixelmaxQM
2025-04-07 17:03:18 +08:00
parent e111b01f16
commit 5fe5caaf2b
6 changed files with 130 additions and 532 deletions

View File

@@ -118,7 +118,7 @@ func (autoApi *AutoCodeApi) LLMAuto(c *gin.Context) {
return
}
path := strings.ReplaceAll(global.GVA_CONFIG.AutoCode.AiPath, "{FUNC}", fmt.Sprintf("api/chat/%s", llm["mode"]))
path := strings.ReplaceAll(global.GVA_CONFIG.AutoCode.AiPath, "{FUNC}", fmt.Sprintf("chat/%s", llm["mode"]))
res, err := request.HttpRequest(
path,
"POST",