feat(gateway): add Seedream 5.0 Pro
This commit is contained in:
@@ -722,10 +722,13 @@ func (imageCountProcessor) ShouldProcess(params map[string]any, modelType string
|
||||
|
||||
func (imageCountProcessor) Process(params map[string]any, modelType string, context *paramProcessContext) bool {
|
||||
capability := capabilityForType(context.modelCapability, modelType)
|
||||
if capability == nil || !boolFromAny(capability["output_multiple_images"]) {
|
||||
if capability == nil {
|
||||
return true
|
||||
}
|
||||
maxCount := int(math.Round(floatFromAny(capability["output_max_images_count"])))
|
||||
if !boolFromAny(capability["output_multiple_images"]) {
|
||||
maxCount = 1
|
||||
}
|
||||
if maxCount <= 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user