15 lines
428 B
Go
15 lines
428 B
Go
package service
|
|
|
|
import "testing"
|
|
|
|
func TestModelRequestIntentNormalizesVideoResolution(t *testing.T) {
|
|
input := map[string]any{
|
|
"mode": "video",
|
|
"config": map[string]any{"vquality": "480", "videoSeconds": "6", "size": "16:9"},
|
|
}
|
|
intent := ModelRequestIntentFromTaskInput(input, "video_generate", "text_to_video")
|
|
if got := intent.Options["vquality"]; got != "480p" {
|
|
t.Fatalf("vquality = %#v, want 480p", got)
|
|
}
|
|
}
|