Closed xarcnovn closed 4 months ago
@xarcnovn can you confirm the version you are using?
pip
$ pip show google.generativeai
Name: google-generativeai
Version: 0.5.2
Summary: Google Generative AI High level API client library and tools.
python
print(genai.__version__)
I was able to replicate the exact error on 0.5.1 but not on 0.5.2 as expected.
I was using the 0.5.1 version. I upgraded to 0.5.2 and it works now. However, it was working a few days ago with v0.5.1 too, I was using it extensively and had never stumbled upon this particular issue. I'm closing the issue then.
I had same error.
pip install --upgrade google-generativeai
Works fine for me.
Version : 0.5.4
Description of the bug:
This looks similar to this https://github.com/google-gemini/generative-ai-python/issues/292
I used File API to upload images to Gemini and everything was working fine, but now File API returns ValueError: Unknown field for File: state. I did a simple test:
and it returns
Please help because it renders my Google AI hackathon project useless (and probably all projects using the upload_file method).
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response