fix(llm-validation): accept stepfun multimodal models and return 422 on capability mismatch
This commit is contained in:
@@ -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)."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user