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

[Go] Gemini model capabilities differ between JS and Go #541

Closed
olivoil opened this issue Jul 4, 2024 · 0 comments · Fixed by #603
Closed

[Go] Gemini model capabilities differ between JS and Go #541

olivoil opened this issue Jul 4, 2024 · 0 comments · Fixed by #603
Assignees
Labels
bug Something isn't working go

Comments

@olivoil
Copy link

olivoil commented Jul 4, 2024

Describe the bug

The model capabilities for Gemini models (flash and pro) differ between JS and Go.

In Go, in the google ai and vertex ai plugins, the systemRole capability is set to false.

In JS, it is set to true in google ai and vertex ai plugins.

To Reproduce

Use a dotprompt that contains a system message, for example this one that is in the go documentation.

---
model: vertexai/gemini-1.5-pro
input:
  schema:
    userQuestion: string
---

{{role "system"}}
You are a helpful AI assistant that really loves to talk about food. Try to work
food items into all of your conversations.
{{role "user"}}
{{userQuestion}}

Run this prompt using both JS and Go implementations. JS will work, but the Go implementation will return an error.

Expected behavior

This Dotprompt should work with both JS and Go implementations.

Runtime (please complete the following information):

  • OS: MacOS
  • Version: 14.5

** Go version

  • go version go1.22.5 darwin/arm64
@olivoil olivoil added bug Something isn't working go labels Jul 4, 2024
@jba jba self-assigned this Jul 4, 2024
jba added a commit that referenced this issue Jul 12, 2024
@jba jba closed this as completed in #603 Jul 12, 2024
@jba jba closed this as completed in 2e83e9b Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants