fix(llm-validation): accept stepfun multimodal models and return 422 on capability mismatch

This commit is contained in:
2026-02-24 16:00:23 +03:00
parent 4fd9d6b6d5
commit 5f6e9c0cc0
5 changed files with 37 additions and 8 deletions

View File

@@ -109,7 +109,7 @@ class DashboardValidationPlugin(PluginBase):
llm_log.debug(f" Base URL: {db_provider.base_url}")
llm_log.debug(f" Default Model: {db_provider.default_model}")
llm_log.debug(f" Is Active: {db_provider.is_active}")
if not is_multimodal_model(db_provider.default_model):
if not is_multimodal_model(db_provider.default_model, db_provider.provider_type):
raise ValueError(
"Dashboard validation requires a multimodal model (image input support)."
)