mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 23:07:18 +00:00
revert: remove passthrough check from isModelSupportedByAccount
该函数不被 OpenAI 调度路径调用,透传短路应只加在 openai_account_scheduler.go 中。
This commit is contained in:
1 parent
69abdff732
commit
c1816f39f2
1 file changed
-4
@@ -3424,10 +3424,6 @@ func (s *GatewayService) isModelSupportedByAccount(account *Account, requestedMo
|
|||||||
if account.Platform == PlatformSora {
|
if account.Platform == PlatformSora {
|
||||||
return s.isSoraModelSupportedByAccount(account, requestedModel)
|
return s.isSoraModelSupportedByAccount(account, requestedModel)
|
||||||
}
|
}
|
||||||
// OpenAI 透传模式:仅替换认证,允许所有模型
|
|
||||||
if account.Platform == PlatformOpenAI && account.IsOpenAIPassthroughEnabled() {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
// OAuth/SetupToken 账号使用 Anthropic 标准映射(短ID → 长ID)
|
// OAuth/SetupToken 账号使用 Anthropic 标准映射(短ID → 长ID)
|
||||||
if account.Platform == PlatformAnthropic && account.Type != AccountTypeAPIKey {
|
if account.Platform == PlatformAnthropic && account.Type != AccountTypeAPIKey {
|
||||||
requestedModel = claude.NormalizeModelID(requestedModel)
|
requestedModel = claude.NormalizeModelID(requestedModel)
|
||||||
|
|||||||
Reference in new issue
Block a user