LocalAI
LocalAI copied to clipboard
refactor: ListModels Filtering Upgrade
Description
This PR introduces just the ListModels and config
package changes from my earlier middleware PR. In order to manage size and conflicts, this PR does not use Usecase-based filtering yet - simply migrates existing name based filtering to the new style and sets up the initial test to prove usecases are working.
In the upcoming [new] middleware PR, default models will take this into account and we can drive better dropdowns on the UI as well.