applyModelFilter
applyModelFilter(
result,filter?):ListModelsResult
Defined in: backend/src/shared.ts:132
Apply capability filter to a model list result.
Filters the models based on their declared capabilities. Models without capability information are included by default.
Parameters
Section titled “Parameters”result
Section titled “result”The model list result to filter
filter?
Section titled “filter?”Optional capability filter criteria
Returns
Section titled “Returns”Filtered ListModelsResult
Example
Section titled “Example”const filtered = applyModelFilter(result, { supportsStreaming: true, supportsVision: true,});