修复绘图任务失败后,完成列表不更新的bug

This commit is contained in:
GeekMaster
2025-04-10 18:21:06 +08:00
parent 1c1ddf76fb
commit bcc72a3091
4 changed files with 652 additions and 834 deletions

View File

@@ -32,7 +32,6 @@ func (h *ChatModelHandler) List(c *gin.Context) {
var chatModels = make([]vo.ChatModel, 0)
session := h.DB.Session(&gorm.Session{}).Where("enabled", true)
t := c.Query("type")
logger.Info("type: ", t)
if t != "" {
session = session.Where("type", t)
} else {