fixing the task filtering

This commit is contained in:
Manan17 2026-03-17 04:52:21 +00:00
commit e8706ba362

View file

@ -176,7 +176,9 @@ async function* priorityThenListingIterator(
);
for (const result of settled) {
if (result.status === "fulfilled") {
const m = result.value as { name?: string };
const m = result.value as { name?: string; pipeline_tag?: string };
// Skip models that don't match the selected task filter
if (task && m.pipeline_tag && m.pipeline_tag !== task) continue;
if (m.name) seen.add(m.name);
yield result.value;
}