fix(*): MiniMax 视频能力 - 放行参考素材视频生成并统一操作推导
This commit is contained in:
1 parent
11ee5aafec
commit
87ff997020
5 files changed
+23
-7
No files matched your search
@@ -229,6 +229,7 @@ func DefaultModelCapabilityConfigForModel(protocol string, modelName string) *Mo
|
||||
video.Resolutions = []string{"1080p"}
|
||||
video.DefaultResolution = "1080p"
|
||||
case model.ChannelInterfaceMiniMaxVideo:
|
||||
video.Operations = append(video.Operations, "reference_to_video")
|
||||
video.References.MaxImages = 9
|
||||
video.References.MaxImageBytes = 30 * 1024 * 1024
|
||||
video.References.MaxVideos = 3
|
||||
|
||||
@@ -83,6 +83,16 @@ func TestDefaultVideoCapabilityUsesProtocolSpecificResolutionTiers(t *testing.T)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultMiniMaxVideoCapabilitySupportsReferenceGeneration(t *testing.T) {
|
||||
profile := DefaultModelCapabilityConfigForModel("minimax-video", "MiniMax-H3")
|
||||
if profile == nil || profile.Video == nil {
|
||||
t.Fatal("MiniMax video profile = nil")
|
||||
}
|
||||
if !containsCapabilityString(profile.Video.Operations, "reference_to_video") {
|
||||
t.Fatalf("operations = %v, want reference_to_video", profile.Video.Operations)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCapabilitySpecFromModelCapabilityConfigRestoresLegacyWildcardImageSizes(t *testing.T) {
|
||||
config := &ModelCapabilityConfig{
|
||||
Version: 1,
|
||||
|
||||
Reference in new issue
Block a user