mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
fix: narrow manifest catalog runtime inputs
This commit is contained in:
@@ -62,7 +62,7 @@ function buildManifestCatalogModelInput(model: ModelCatalogModel): ModelDefiniti
|
||||
`Manifest modelCatalog row ${model.id} uses unsupported runtime input document`,
|
||||
);
|
||||
}
|
||||
return model.input ?? ["text"];
|
||||
return model.input?.filter((item): item is "text" | "image" => item !== "document") ?? ["text"];
|
||||
}
|
||||
|
||||
function buildManifestCatalogModel(model: ModelCatalogModel): ModelDefinitionConfig {
|
||||
|
||||
Reference in New Issue
Block a user