Skip to content

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