Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to use user-defined API_KEY ? #19

Open
anhhtca opened this issue Mar 26, 2024 · 1 comment
Open

Is there any way to use user-defined API_KEY ? #19

anhhtca opened this issue Mar 26, 2024 · 1 comment
Labels
clarification-needed question Further information is requested

Comments

@anhhtca
Copy link

anhhtca commented Mar 26, 2024

Hi,
Users will provide their own keys to call Google Gemini Api.

Is there any way to do that?

Regards,

@gsilvamartin
Copy link
Owner

Hi @anhhtca !

Sorry for late response.

Currently we register the api key in the gemini client add

    services.AddGeminiClient(config =>
    {
        config.ApiKey = "YOUR_GOOGLE_GEMINI_API_KEY";
        config.ImageBaseUrl = "CURRENTLY_IMAGE_BASE_URL";
        config.TextBaseUrl = "CURRENTLY_IMAGE_BASE_URL";
    });

You want to change it after registering the instance?

@gsilvamartin gsilvamartin added question Further information is requested clarification-needed labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification-needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants