mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-27 15:29:23 +00:00
fix(images): route compatible Gemini image models through API keys
This commit is contained in:
1 parent
8e23e13158
commit
9fedf899e2
5 files changed
+205
-4
No files matched your search
@@ -2008,6 +2008,8 @@ func (a *Account) SupportsOpenAIImageCapability(capability OpenAIImagesCapabilit
|
||||
return false
|
||||
}
|
||||
switch capability {
|
||||
case OpenAIImagesCapabilityAPIKey:
|
||||
return a.Type == AccountTypeAPIKey
|
||||
case OpenAIImagesCapabilityBasic, OpenAIImagesCapabilityNative:
|
||||
return a.Type == AccountTypeOAuth || a.Type == AccountTypeSetupToken || a.Type == AccountTypeAPIKey
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user