Skip to content

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

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.

mbleigh and others added 3 commits November 22, 2024 09:41
@pavelgj
Copy link
Collaborator

pavelgj commented May 30, 2025

this is outdated, we have this implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants