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

Add Gemini API compatibility - with a few lines of code #1009

Open
menelic opened this issue Feb 11, 2025 · 2 comments
Open

Add Gemini API compatibility - with a few lines of code #1009

menelic opened this issue Feb 11, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@menelic
Copy link
Contributor

menelic commented Feb 11, 2025

Is your feature request related to a problem? Please describe.

The no-cost availability of API keys for gemini with any Google account (certainly rate limited, but with an allowance of tokens I have not yet managed to exhaust) the long context window and increasingly good performance of Google Gemini makes it a possibly useful AI to use for coding assistance in QualCoder. In addition, some contexts have institutional access to teh Gemini API whose data protecdtion guarantees are preferrable to OpenAI in some jurisdictions. But Gemini is not an option in QualCoder, despite

Describe the solution you'd like

Please add Gemini as an Ai option, google has provided this seeminly smple solution to add Gemini ether as an Open Ai replacement with a few lines of python code

https://ai.google.dev/gemini-api/docs/openai

or natively with a few lines of python

https://ai.google.dev/gemini-api/docs/quickstart?lang=python

@kaixxx kaixxx added the enhancement New feature or request label Feb 11, 2025
@kaixxx
Copy link
Collaborator

kaixxx commented Feb 11, 2025

You might be able to do this yourself, see: https://github.com/ccbogel/QualCoder/wiki/2.3.-AI-Setup#using-other-ai-models-or-gpt-4-via-microsoft-azure

Here, I have explained how to add Gemini via Openrouter.ai: kaixxx#10
But I ran into a lot of rate-limit-issues. If you access the Google servers directly, this might be less of a problem.

Please report back if you had any success!

@kaixxx
Copy link
Collaborator

kaixxx commented Feb 15, 2025

@menelic: If you need help adding the Gemini models, post your attempt with the config file here so I can take a look. Just make sure to remove your API-keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants