fix: refine upstream update ignore UX and detect behavior

This commit is contained in:
Seefs
2026-03-03 14:00:48 +08:00
parent e71f5a45f2
commit 0a804f0e70
4 changed files with 34 additions and 26 deletions

View File

@@ -730,14 +730,6 @@ func DetectChannelUpstreamModelUpdates(c *gin.Context) {
}
settings := channel.GetOtherSettings()
if !settings.UpstreamModelUpdateCheckEnabled {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "该渠道未开启上游模型更新检测",
})
return
}
modelsChanged, autoAdded, err := checkAndPersistChannelUpstreamModelUpdates(channel, &settings, true, false)
if err != nil {
common.ApiError(c, err)