Open rabejens opened 5 days ago
You can configure them from client. Component does need some kind of change in that sense but not hiding in client.
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.
I was thinking of just a config file that would be in the root folder with a list of providers to hide.
Why not comment them out in providers file then?
I rather just have a .env.local file with this in there so i just edit that and leave the code alone.
One solution could be to list only providers who are active in .env(.local)
@kekePower I agree
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.