fixing the task filtering
This commit is contained in:
parent
4053f197a2
commit
e8706ba362
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue