dsdanielpark / Gemini-API

The unofficial python package that returns response of Google Gemini through cookie values.
https://pypi.org/project/python-gemini-api/
MIT License
160 stars 14 forks source link

1.0.0 not working #11

Closed OlegRuban-ai closed 7 months ago

OlegRuban-ai commented 7 months ago

After update to 1.0.0 i always see error 400 when i want to get response. All cookies are fresh and correct, code was work in 0.1.6

dsdanielpark commented 7 months ago

Use version 1.0.3. I built it for you. I'm focusing on generally parsing the response.

pip install -q -U python-gemini-api
pip install python-gemini-api==1.0.3
OlegRuban-ai commented 7 months ago

In 1.0.3 also problem - ModuleNotFoundError: No module named 'gemini.models.parser'

FuseFairy commented 7 months ago

I have the same problem.

fuzunspm commented 7 months ago

having the same issue

dsdanielpark commented 7 months ago

fuzunspm, FuseFairy, OlegRuban-ai

Please, try to use 1.0.4.

We are currently modifying the package with a focus on extensive code refactoring and future maintainability, so errors may occur. We are also in the process of making adjustments to the returned dictionary for easier access in the future.

We appreciate your understanding. Thank you!!!

python uninstall python-gemini-api
python install python-gemini-api==1.0.4