Describe the bug
The response text is returned in a URL format that cannot be seen.
Version
OS: Windows 11
Python: 3.12.2
Gemini API: 1.0.4
Using proxy: No
Region: Poland
Code
from gemini import Gemini
cookies = {
"__Secure-1PSID" : "fullfilled",
"__Secure-1PSIDTS" : "fullfilled",
"__Secure-1PSIDCC" : "fullfilled", # I use this because in BardCookies it works
"NID" : "fullfilled",
}
GeminiClient = Gemini(cookies=cookies)
prompt = "Hello, Gemini. What's the weather like in Seoul today?"
response = GeminiClient.generate_content(prompt)
print(response)
Error
{'metadata': ['c_cd648c1c943cb00f', 'r_f093111e78855c35'], 'candidates': {'rcid': 'rc_97ec8a9d7ddbed62', 'text': 'http://googleusercontent.com/card_content/0', 'web_images': [], 'generated_images': []}}
Describe the bug
The response text is returned in a URL format that cannot be seen.
Version
OS: Windows 11
Python: 3.12.2
Gemini API: 1.0.4
Using proxy: No
Region: Poland
Code
Error