fix(validation): respect settings-bound provider and correct multimodal heuristic

This commit is contained in:
2026-02-24 16:04:14 +03:00
parent 5f6e9c0cc0
commit e0c0dd3221
3 changed files with 1 additions and 24 deletions

View File

@@ -161,13 +161,9 @@ def is_multimodal_model(model_name: str, provider_type: Optional[str] = None) ->
"internvl",
"qwen-vl",
"qwen2-vl",
"stepfun/step-3.5",
)
if any(marker in token for marker in multimodal_markers):
return True
# OpenRouter model ids are heterogeneous; keep permissive path for known StepFun family.
if provider == "openrouter" and token.startswith("stepfun/step-3.5"):
return True
return False
# [/DEF:is_multimodal_model:Function]