Currently, LLM API keys are on the Agent level, not the User level. That means that, if you enter an LLM API key for a given Agent, and then try to create another Agent, you have to re-enter the API key.
Since most users will likely use the same API key for multiple Agents, it would be better to store API keys on the User level and pre-fill them whenever a new Agent is created.
Tasks
[ ] Modify database to have a view of API keys per-user per-LLM
[ ] Check that table and pre-fill the API key if the User selects an LLM they have already configured before
Description
Currently, LLM API keys are on the Agent level, not the User level. That means that, if you enter an LLM API key for a given Agent, and then try to create another Agent, you have to re-enter the API key.
Since most users will likely use the same API key for multiple Agents, it would be better to store API keys on the User level and pre-fill them whenever a new Agent is created.
Tasks