mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-28 18:34:47 +08:00
Merge pull request #807 from touwaeriol/fix/openai-passthrough-v2
fix(openai): remove misplaced passthrough check from isModelSupportedByAccount
This commit is contained in:
@@ -3331,10 +3331,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