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

feat(js/plugins/googleai): adds gemini() function for unspecified model support #1372

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

Conversation

mbleigh
Copy link
Collaborator

@mbleigh mbleigh commented Nov 22, 2024

This allows use of Gemini models using a stringly typed gemini() function from the Google AI plugin:

const geminiExp = gemini('gemini-exp-1114');

It supports string autocomplete for the model families:

image

Checklist (if applicable):

  • Tested (manually, unit tested, etc.)
  • Changelog updated
  • Docs updated

@mbleigh mbleigh requested a review from pavelgj November 22, 2024 00:35
@pavelgj pavelgj changed the title [JS][googleai] Adds gemini() function for unspecified model support. feat(js/plugins/googleai): adds gemini() function for unspecified model support Nov 22, 2024
@@ -50,7 +50,7 @@ enableGoogleCloudTelemetry({
});

const ai = genkit({
plugins: [googleAI(), vertexAI()],
plugins: [googleAI({ apiVersion: 'v1beta' }), vertexAI()],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be necessary

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was necessary for me to get the gemini-exp-1114 model to work.

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

Successfully merging this pull request may close these issues.

2 participants