improve model provider selection algorithm

This commit is contained in:
miloschwartz
2026-08-11 16:10:34 -04:00
parent 75c6af3b11
commit c42df737b0
11 changed files with 408 additions and 200 deletions
@@ -131,8 +131,7 @@ export async function addAiProviderToResource(
const attachments = await resolveProviderAttachments({
orgId: resource.orgId,
attachments: nextAttachments,
requireAtLeastOne: true,
resourceId
requireAtLeastOne: true
});
if (isInferenceFieldsError(attachments)) {
return next(