feat(canvas): support multimodal video storyboard tables

This commit is contained in:
Codex committed 2026-09-20 12:59:23 +08:00
1 parent 7985dbec48
commit 6d355380cb
10 files changed
+425 -45

No files matched your search

+6 -3
View File
@@ -274,9 +274,12 @@ func MatchCapability(spec CapabilitySpec, intent ModelRequestIntent) CapabilityM
}
constraint, declared := spec.Inputs[inputType]
if !declared {
// Multimodal text models may accept reference images even when the
// provider catalog does not explicitly declare the image input.
if count > 0 && !(normalizeCapability(spec.Capability) == "text" && inputType == "image") {
// Multimodal text models may accept reference images or videos even
// when the provider catalog does not explicitly declare the input.
// The concrete model capability still controls the frontend limits;
// this fallback keeps older catalog entries routable for known
// multimodal text endpoints.
if count > 0 && !(normalizeCapability(spec.Capability) == "text" && (inputType == "image" || inputType == "video")) {
reasons = append(reasons, "不支持 "+capabilityInputLabel(inputType)+"输入")
}
continue