feat: Modellimitgroup check

This commit is contained in:
tbphp
2025-05-05 20:00:06 +08:00
parent 1513ed7847
commit 88ed83f419
2 changed files with 25 additions and 0 deletions

View File

@@ -110,6 +110,15 @@ func UpdateOption(c *gin.Context) {
})
return
}
case "ModelRequestRateLimitGroup":
err = setting.CheckModelRequestRateLimitGroup(option.Value)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": err.Error(),
})
return
}
}
err = model.UpdateOption(option.Key, option.Value)