enricoros / big-AGI

Generative AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. It features AI personas, AGI functions, multi-model chats, text-to-image, voice, response streaming, code highlighting and execution, PDF import, presets for developers, much more. Deploy on-prem or in the cloud.
https://big-agi.com
MIT License
5.27k stars 1.2k forks source link

Ability to easily hide all models #605

Open powellnorma opened 1 month ago

powellnorma commented 1 month ago

Why When adding OpenRouter as service to https://get.big-agi.com/, a loot of visible models are added. But I only care about one or two. Having to manually click disable "Show in Chat" for each one is quite tedious, since there are so many.

Description A way (e.g. a button) to hide all models, allowing one to opt-in for specific ones.

powellnorma commented 1 month ago

For now, the following can be used as a workaround via dev console:

let d = JSON.parse(localStorage.getItem("app-models"));
d.state.llms.forEach(x => x.hidden = true);
localStorage.setItem("app-models", JSON.stringify(d));
enricoros commented 1 month ago

Thanks @powellnorma - and great trick on the console, I wasn't aware.

How are you suggesting the setting to be like? Something like the "hide non-free" ? image

powellnorma commented 1 month ago

Something like the "hide non-free" ?

That would work. Since most models are non-free, this button alone would already have been enough for me (in this case).

Another idea would be a small button with the eye icon, that toggles all models (Though it should be clear what it does, to avoid users from accidentally overwriting their pre-made selection, so e.g. a description on hover)

enricoros commented 1 month ago

@powellnorma done in big-agi 2 - out end aug. image