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

@@ -1239,7 +1239,7 @@ async def _dispatch_intent(
)
provider = LLMProviderService(db).get_provider(provider_id)
provider_model = provider.default_model if provider else ""
if not is_multimodal_model(provider_model):
if not is_multimodal_model(provider_model, provider.provider_type if provider else None):
raise HTTPException(
status_code=422,
detail=(