ps-fuzz icon indicating copy to clipboard operation
ps-fuzz copied to clipboard

Error using ps-fuzz with google.generativeai

Open jaymon0703 opened this issue 1 year ago • 3 comments

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 avatar Oct 15 '24 19:10 jaymon0703

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.

jaymon0703 avatar Oct 15 '24 20:10 jaymon0703

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.

guy-ps avatar Oct 16 '24 08:10 guy-ps

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

jaymon0703 avatar Oct 16 '24 13:10 jaymon0703