mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix: avoid provider index preview row spread
This commit is contained in:
@@ -51,13 +51,10 @@ function normalizePreviewCatalog(params: {
|
||||
if (!provider) {
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
...provider,
|
||||
models: provider.models.map((model) => ({
|
||||
...model,
|
||||
status: model.status ?? "preview",
|
||||
})),
|
||||
};
|
||||
for (const model of provider.models) {
|
||||
model.status ??= "preview";
|
||||
}
|
||||
return provider;
|
||||
}
|
||||
|
||||
function normalizeProvider(
|
||||
|
||||
Reference in New Issue
Block a user