fix: align video generation payloads
This commit is contained in:
@@ -339,5 +339,12 @@ func firstNonEmptyPrompt(body map[string]any, fallback string) string {
|
||||
return value
|
||||
}
|
||||
}
|
||||
for _, item := range contentItems(body["content"]) {
|
||||
if stringValue(item, "type") == "text" {
|
||||
if value := strings.TrimSpace(stringValue(item, "text")); value != "" {
|
||||
return value
|
||||
}
|
||||
}
|
||||
}
|
||||
return fallback
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user