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

Add support for GeminiPro #436

Closed
kokuyouwind opened this issue Dec 31, 2023 · 2 comments · Fixed by #513
Closed

Add support for GeminiPro #436

kokuyouwind opened this issue Dec 31, 2023 · 2 comments · Fixed by #513

Comments

@kokuyouwind
Copy link
Contributor

I want to use Google's gemini-pro model.
This is included in Vertex, but while other models such as bison require only prompt as a parameter(reference), gemini-pro requires a chat-style parameter with a role(reference).

LangChain in Python implements this model separately from ChatVertexAI under the name ChatGoogleGenerativeAI. It would be desirable to do the same in Ruby.

@kokuyouwind
Copy link
Contributor Author

According to googleapis/google-api-ruby-client#17071, there is currently a bug in using the gemini pro model with Google::Apis::AiplatformV1 (I reproduced it on my environment).
There are approaches to use the REST API directly (like https://github.com/gbaptista/gemini-ai), but it would be better to wait until it is available from the official client.

@andreibondarev
Copy link
Collaborator

@kokuyouwind If you'd like to work on a PR I would welcome it with open hands! 😄

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 a pull request may close this issue.

2 participants