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

Error using ps-fuzz with google.generativeai #58

Open
jaymon0703 opened this issue Oct 15, 2024 · 3 comments
Open

Error using ps-fuzz with google.generativeai #58

jaymon0703 opened this issue Oct 15, 2024 · 3 comments

Comments

@jaymon0703
Copy link

Hi

I am trying to use ps-fuzz locally with Google API using the config in the screenshot and currently getting the error:

AttributeError: module 'google.generativeai.types' has no attribute 'MessageDict'

image

Can you share an example that works with Google's Gemini API or let me know where i may be going wrong?

Thank you!

@jaymon0703
Copy link
Author

jaymon0703 commented Oct 15, 2024

Since google_palm will be deprecated soon, i tried vertex_ai instead (see screenshot for config) and am now getting this error:

Chat inference failed with error: 400 There should be odd number of messages for correct alternating turn.

image

Its progress at least compared to the previous error. Appreciate your help.

@guy-ps
Copy link
Contributor

guy-ps commented Oct 16, 2024

Hi @jaymon0703, I'm going to look into it, but we don't support gemini out of the box yet.
We will upgrade our core langchain version in order to support the latest modules and latest communication protocols.

@jaymon0703
Copy link
Author

Thank you @guy-ps! Please keep me posted.

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

No branches or pull requests

2 participants