mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-25 07:22:18 +00:00
feat: support native Seedance Ark video task API
This commit is contained in:
1 parent
881f320269
commit
aba34524f1
19 files changed
+631
-32
No files matched your search
@@ -1828,6 +1828,11 @@ func (a *Account) SupportsOpenAIEndpointCapability(capability OpenAIEndpointCapa
|
||||
if a == nil {
|
||||
return false
|
||||
}
|
||||
if capability == OpenAIEndpointCapabilitySeedance {
|
||||
configured, _ := a.openAIEndpointCapabilitySet()
|
||||
return configured["seedance"] && a.Platform == PlatformOpenAI && a.Type == AccountTypeAPIKey &&
|
||||
strings.TrimSpace(a.GetCredential("base_url")) != ""
|
||||
}
|
||||
if capability == "" {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user