feat(FN-1748): merge fusion/fn-1748

This commit is contained in:
gsxdsm
2026-04-14 22:45:59 -07:00
parent 6e2236c0ae
commit 42da5e80cb
34 changed files with 133 additions and 151 deletions

View File

@@ -95,11 +95,6 @@ export function CustomModelDropdown({
}, [favoriteModels, filteredModels]);
// Sort providers: favorites first (in order), then alphabetically
// Exclude providers that are already favorited as models (they appear at top as pinned rows)
const favoritedProviderSet = new Set(favoriteModels.map((fullId) => {
const idx = fullId.indexOf("/");
return idx !== -1 ? fullId.slice(0, idx) : fullId;
}));
const sortedProviderEntries = useMemo(() => {
const entries = Object.entries(modelsByProvider);
const favoritesSet = new Set(favoriteProviders);