coleam00 / bolt.new-any-llm

Prompt, run, edit, and deploy full-stack web applications using any LLM you want!
https://bolt.new
MIT License
4.97k stars 2.04k forks source link

Hide unconfigured providers / models #452

Open rabejens opened 5 days ago

rabejens commented 5 days ago

I would like that unconfigured providers/models (i.e., missing API Keys) are hidden in the select box. Currently, you can select them and get an error message.

wonderwhy-er commented 5 days ago

You can configure them from client. Component does need some kind of change in that sense but not hiding in client.

wonderwhy-er commented 5 days ago

Or, on second thought, it could be done in a way where there is config for that. Hide ones that do not have API key set in env.

But that still will require some refactor to provide list from server. Currently static config used on both client and server.

dustinwloring1988 commented 4 days ago

I was thinking of just a config file that would be in the root folder with a list of providers to hide.

wonderwhy-er commented 4 days ago

Why not comment them out in providers file then?

dustinwloring1988 commented 4 days ago

I rather just have a .env.local file with this in there so i just edit that and leave the code alone.

kekePower commented 4 days ago

One solution could be to list only providers who are active in .env(.local)

dustinwloring1988 commented 4 days ago

@kekePower I agree