Merge branch 'main-upstream' into fix/volcengine_default_baseurl

# Conflicts:
#	web/src/components/settings/personal/cards/AccountManagement.jsx
This commit is contained in:
Seefs
2025-09-29 12:17:44 +08:00
4 changed files with 134 additions and 36 deletions
+3
View File
@@ -8,6 +8,7 @@ import (
"one-api/constant"
"one-api/dto"
"one-api/model"
"one-api/service"
"strconv"
"strings"
@@ -633,6 +634,7 @@ func AddChannel(c *gin.Context) {
common.ApiError(c, err)
return
}
service.ResetProxyClientCache()
c.JSON(http.StatusOK, gin.H{
"success": true,
"message": "",
@@ -894,6 +896,7 @@ func UpdateChannel(c *gin.Context) {
return
}
model.InitChannelCache()
service.ResetProxyClientCache()
channel.Key = ""
clearChannelInfo(&channel.Channel)
c.JSON(http.StatusOK, gin.H{