mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:20:43 +00:00
fix: skip duplicate suppression for registry rows
This commit is contained in:
@@ -82,6 +82,7 @@ export async function appendAllModelRowSources(
|
||||
modelRegistry: params.modelRegistry,
|
||||
context: params.context,
|
||||
resolveWithRegistry: Boolean(params.context.filter.provider),
|
||||
skipSuppression: Boolean(params.modelRegistry),
|
||||
});
|
||||
|
||||
await appendConfiguredProviderRows({
|
||||
|
||||
@@ -161,6 +161,7 @@ async function appendVisibleRow(params: {
|
||||
context: RowBuilderContext;
|
||||
seenKeys?: Set<string>;
|
||||
allowProviderAvailabilityFallback?: boolean;
|
||||
skipSuppression?: boolean;
|
||||
}): Promise<boolean> {
|
||||
if (params.seenKeys?.has(params.key)) {
|
||||
return false;
|
||||
@@ -168,7 +169,10 @@ async function appendVisibleRow(params: {
|
||||
if (!matchesRowFilter(params.context.filter, params.model)) {
|
||||
return false;
|
||||
}
|
||||
if (shouldSuppressListModel({ model: params.model, context: params.context })) {
|
||||
if (
|
||||
!params.skipSuppression &&
|
||||
shouldSuppressListModel({ model: params.model, context: params.context })
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
params.rows.push(
|
||||
@@ -267,6 +271,7 @@ export async function appendDiscoveredRows(params: {
|
||||
modelRegistry?: ModelRegistry;
|
||||
context: RowBuilderContext;
|
||||
resolveWithRegistry?: boolean;
|
||||
skipSuppression?: boolean;
|
||||
}): Promise<Set<string>> {
|
||||
const seenKeys = new Set<string>();
|
||||
const modelResolver =
|
||||
@@ -303,6 +308,7 @@ export async function appendDiscoveredRows(params: {
|
||||
key,
|
||||
context: params.context,
|
||||
seenKeys,
|
||||
skipSuppression: params.skipSuppression,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user