TheFireCo / genkit-plugins

Community Plugins for Genkit (OpenAI, Groq, Anthropic, Cohere, etc)
https://thefireco.github.io/genkit-plugins/
Apache License 2.0
101 stars 21 forks source link

gemini-1.5-pro model configured with gemini-1.0-pro-001 version #85

Closed sisbell closed 5 months ago

sisbell commented 5 months ago

Affected plugin(s)

Describe the bug In the VertexAI plugin (js/plugins/vertexai/src/gemini.ts) gemini-1.5-pro model is configured with the gemini-1.0-pro-001 version. It should be using version gemini-1.5-pro-001

export const gemini15Pro = modelRef({
  name: 'vertexai/gemini-1.5-pro',
  info: {
    label: 'Vertex AI - Gemini 1.5 Pro',
    versions: ['gemini-1.0-pro-001'],
    supports: {
      multiturn: true,
      media: true,
      tools: true,
      systemRole: true,
    },
  },
  configSchema: GeminiConfigSchema,
});

Plugin(s) version: 0.5.2

Genkit version: 0.5.2

Dabolus commented 5 months ago

Hi, thanks for opening the issue. However, this repo contains the community maintained plugins (the ones starting with genkitx-, while the VertexAI plugin is an official Firebase plugin (the ones starting with @genkit-ai/). Anyways, I can confirm the issue is present in the official plugin. I opened a PR here to fix it. I'll close this issue since it's not related to this repo, but feel free to open a new one in the official Genkit repo here if you want to follow up.