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 1.5 Pro and Flash Support #452

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

estacks
Copy link

@estacks estacks commented Oct 4, 2024

This PR adds support for two base models as a backend: gemini-1.5-pro and gemini-1.5-flash using Google's Generative AI library. These can be used with a free API key from Google AI Studio.

Can be run with:
python run.py ... --model "GEMINI_1_5_FLASH" or python run.py ... --model "GEMINI_1_5_PRO"

One thing I'm unclear on:
Gemini returns its role as "model" instead of "assistant". Not sure if or how this messes with the code gen. You can see where I enable this role in base.py. Are there places where the role is super relevant and this should be updated for Gemini?

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

Successfully merging this pull request may close these issues.

2 participants