Multi-tenant API Keys? #1610
Replies: 4 comments
-
For example, obtain an oauth grant from Azure OpenAI |
Beta Was this translation helpful? Give feedback.
-
I think this is very valid and IIRC, @sberyozkin did something already in this area? |
Beta Was this translation helpful? Give feedback.
-
This is exactly what https://github.com/quarkiverse/quarkus-langchain4j/tree/main/samples/secure-poem-multiple-models shows, with both Google (Gemini) and Azure OpenAI... It really only works for models co-located with providers like EntraID, Google, where the user authentication token can become a valid token to access the model... |
Beta Was this translation helpful? Give feedback.
-
@pedroigor FYI |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So, I'm writing an app for myself, that I may and make available to the wider internet. But.... I Don't want to have to pay for LLM time with my own API keys. So I thought, it might be great to manage API keys on a per user basis. Obtain an API Key for the user via OAuth or through user input. Then quarkus-langchain4j will need a way to propagate this.
I don't know if my usecase is so narrow, but it might help new AI projects come online and such. Could provide a solution too, with Keycloak.
Beta Was this translation helpful? Give feedback.
All reactions