merge: preserve batch canvas enhancements on v1.5.4

This commit is contained in:
Codex
2026-09-19 15:48:07 +08:00
parent 0e5fb27f06
commit f9dc1c561b
5 changed files with 1026 additions and 767 deletions

View File

@@ -274,7 +274,9 @@ func MatchCapability(spec CapabilitySpec, intent ModelRequestIntent) CapabilityM
}
constraint, declared := spec.Inputs[inputType]
if !declared {
if count > 0 {
// 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") {
reasons = append(reasons, "不支持 "+capabilityInputLabel(inputType)+"输入")
}
continue