Agenta-AI / agenta

The all-in-one LLM developer platform: prompt management, evaluation, human feedback, and deployment all in one place.
http://www.agenta.ai
MIT License
1.11k stars 175 forks source link

[Sub-issue] [MultiModel support] API Key Update Endpoint #1201

Open mmabrouk opened 7 months ago

mmabrouk commented 7 months ago

Context:

We would like to enable users to update their LLM API keys in agenta and continue using their apps with the new API keys. Right now, after an app is created it is impossible to update the API key (other than by reserving the application from code with a new .env)

Suggested solution:

Other solutions considered:

The disadvantage of this solution is: 1) The requests for generate_deployed would require an api key in the call and therefore cannot be called directly from a frontend=> Not a real disadvantage, since anyhow, in a real production system, our LLM apps would also require API keys in the call, and would also not be called from the frontend. 2) Sharing LLM keys between users becomes difficult: Many organization would like to share API keys without giving the whole team access to the API keys. To implement this, we would need to 1) save the keys in our backend 2) implement the logic to sharing it between the configuration anyhow

Overall, I think the solution suggested is 1) simple to implement 2) solves the problem quite well for now. Users can even update the keys for their code served apps.

@aakrem @aybruhm What do you think? Did I miss something?

mmabrouk commented 4 months ago

@mmabrouk evaluation

aakrem commented 3 months ago