You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to be able to change the API key for providers during the generate function. As a possible parameter. The problem is that AI instances must be created beforehand. That way, it is not possible to access secrets (for OpenAI) or to change the API key based on a project or client making the call from the front end.
Describe the solution you'd like
We can now allow several plugins when creating the Genkit instance and change the model during the onFlow. But it would be nice to be able to also set the API key for a provider as parameter for the generate function. Or to modify the Genkit instance before the generate function. If I try to do that now, there is an error.
Describe alternatives you've considered
I now have to create flows for each project or client in my app and have the front end call separate flows based on the client. This is cumbersome and we will have many flows like this because all will be duplicate for each client. There is no way for me to retrieve the API keys for the client during the flow and change them before calling the generate function.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to be able to change the API key for providers during the generate function. As a possible parameter. The problem is that AI instances must be created beforehand. That way, it is not possible to access secrets (for OpenAI) or to change the API key based on a project or client making the call from the front end.
Describe the solution you'd like
We can now allow several plugins when creating the Genkit instance and change the model during the onFlow. But it would be nice to be able to also set the API key for a provider as parameter for the generate function. Or to modify the Genkit instance before the generate function. If I try to do that now, there is an error.
Describe alternatives you've considered
I now have to create flows for each project or client in my app and have the front end call separate flows based on the client. This is cumbersome and we will have many flows like this because all will be duplicate for each client. There is no way for me to retrieve the API keys for the client during the flow and change them before calling the generate function.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: