feat: auto分组

This commit is contained in:
creamlike1024 committed 2025-06-16 22:15:12 +08:00
1 parent c4e652461e
commit c6a9df67b1
16 files changed
+477 -186

No files matched your search

+3
View File
@@ -226,6 +226,9 @@ func Register(c *gin.Context) {
UnlimitedQuota: true,
ModelLimitsEnabled: false,
}
if setting.DefaultUseAutoGroup {
token.Group = "auto"
}
if err := token.Insert(); err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,