mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-23 08:35:59 +08:00
修复绘图任务失败后,完成列表不更新的bug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user