Comments (1)
Thank you. I'm aware of this issue and others, needing to isolate errors and refactor, but detailed revisions are currently delayed due to the hiring process and other projects.
The most likely successful approach in your current situation is method 2, try rerunning the generate_content
method without redeclaring the Gemini
object. The first object of generate_content
might be empty.
-
AttributeError: 'NoneType' object has no attribute 'group'
v2.3.0
will support clear error message.- The issue likely stems from invalid or expired cookies. Once exported cookie valuse, google expire and change cookie values very quickly.
-
GeminiClient = Gemini(cookies=cookies) # where cookies are
__Secure-1PSID
,__Secure-1PSIDTS
- Refer to issue #14
- Try rerunning the
generate_content
method without redeclaring theGemini
object.
-
Auto cookies
- Auto-cookie update is not properly implemented yet; similar to point 1, cookies are received and then updated.
- The package development was delayed because I aimed to automatically collect cookies from the browser perfectly from the start, ensuring error-free and comfortable use, but ultimately failed, causing a delay in the initial release.
I will try to make time to address this issue as soon as possible.
Also, I have marked # To-Do
note in the source code to seek other contributors.
We are waiting for many contributors.
Additionally, I do not expect frequent updates or added features for the Gemini API, as there is an official Gemini API, unlike with Bard API.
from gemini-api.
Related Issues (20)
- 1.0.0 not working HOT 5
- Notice: To Bard API Contributors
- 'NoneType' object has no attribute 'group' HOT 8
- The response text is a empty URL, which cannot be seen. {'metadata': ['c_cd648c1c943cb00f', 'r_f093111e78855c35'], 'candidates': {'rcid': 'rc_97ec8a9d7ddbed62', 'text': 'http://googleusercontent.com/card_content/0', 'web_images': [], 'generated_images': []}} HOT 5
- Image Generation issue HOT 4
- Opening new chat session for every prompts HOT 6
- Gemini to Gemini Advanced? HOT 1
- It returns message "maximum recursion depth exceeded" HOT 14
- Unable to reuse sessions. HOT 1
- Input should be a valid list [type=list_type, input_value='Gönderilen resimde "Saf...ihtimalini artırıyor.', input_type=str] HOT 4
- Response None HOT 3
- ValueError: Failed to parse SNlM0e nonce value from the response. Refresh the Gemini web page or access Gemini in a new incognito browser to resend cookies. If issue continues, export browser cookies, set manually. See auth section 3. HOT 24
- ModuleNotFoundError: No module named 'gemini.src.module' HOT 1
- SNlM0e token value not found. Double-check cookies dict value or pass it as Gemini(cookies=Dict()) HOT 4
- Notice: Reverse Engineering and Feature Testing Ongoing Until April 1, 2024 HOT 2
- Exception: SNlM0e token value not found. Double-check cookies dict value or pass it as Gemini(cookies=Dict()) HOT 4
- ImportError: cannot import name 'GeminiClient' from 'gemini' HOT 2
- AttributeError: 'Gemini' object has no attribute '_set_session' HOT 1
- Response in 0.1.6 as a string HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gemini-api.