mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
Merge branch 'feature/channel' into release/custom-0.1.105
This commit is contained in:
commit
bd17bde19c
12 files changed
+149
-116
No files matched your search
@@ -161,7 +161,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) {
|
||||
// 解析渠道级模型映射 + 限制检查
|
||||
channelMapping, restricted := h.gatewayService.ResolveChannelMappingAndRestrict(c.Request.Context(), apiKey.GroupID, reqModel)
|
||||
if restricted {
|
||||
h.errorResponse(c, http.StatusServiceUnavailable, "api_error", "No available accounts")
|
||||
h.errorResponse(c, http.StatusServiceUnavailable, "api_error", "The requested model is not available for this API key")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user