Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Failed to generate content with rcid #33

Open
mdatiqmazumder opened this issue May 15, 2024 · 2 comments
Open

Failed to generate content with rcid #33

mdatiqmazumder opened this issue May 15, 2024 · 2 comments
Assignees

Comments

@mdatiqmazumder
Copy link

First, I would like to thank you for developing such a beautiful program.

I have developed a command-line application using this package. However, after running a command and asking a question, when I ask another question, it starts a new chat session. As a result, I have to give detailed explanations each time I ask a question. So, if I don't understand something and ask again, it starts a new session and forgets what I said earlier. I have smoothly used the previously archived package which did not have this system. When I asked a question again, it went to the same chat session.

I have tried all the mentioned methods including using rcid, but it doesn't work. When I use rcid, it shows the following error.
love from Bangladesh.

failed to generate content due to an error: Google PeerSide authentication may have expired. Refresh the cookie manually and retry the test.
Details: All parsing strategies failed. Try to use Gemini.send_request(prompt) to get original payload.
Return reponse without parse. If the issue persists, submit it at https://github.com/dsdanielpark/Gemini-API/issues
)]}'

38
[["wrb.fr",null,null,null,null,[3]]]
58
[["di",135],["af.httprm",134,"-2372528540817843093",64]]
25
[["e",4,null,null,133]]

@dsdanielpark
Copy link
Owner

dsdanielpark commented May 20, 2024

Thank you for your kind words.

This issue was initially designed to bypass intentional blocking.

It needs further refinement. However, in version 2.4.12 (commit hash 13e7971), we muted the fixed sid, which might be related to this issue. Please check and let us know.

Thank you.

@mdatiqmazumder
Copy link
Author

I've tried it, but even after using rcid, the second response is still the same as before.
I really need this feature in emergencies, but there's no way without you.
I'm giving you the error log of the second response.

[Running] python -u "c:\laragon\www\bard\02.py"
metadata=['c_e866d6cc64657b15', 'r_02db8b6d986e4371'] candidates=[GeminiCandidate(rcid='rc_95390c353613e747', text="The United States of America (USA), also known simply as America, is a large North American country with a rich history and culture. Here's a quick summary:\n\n* Land: It's a federation of 50 states stretching across North America, with Alaska in the northwest and Hawaii far out in the Pacific Ocean. Major cities include New York City (finance and culture), Washington D.C. (capital), Chicago (architecture), and Los Angeles (Hollywood).\n* Size: The US is the world's 3rd largest country by land area and 3rd largest in population (over 334 million).\n* Government: The US is a federal republic with a president as head of state and government. \n* Diversity: The US is a country of immigrants, with a population reflecting a variety of cultures and ethnicities.\n\nIf you're interested in learning more about a specific aspect of the USA, like its history, geography, or culture, just let me know!", code={}, web_images=[], generated_images=[], response_dict={}), GeminiCandidate(rcid='rc_7c22a90e51a5a891', text="The United States of America (USA), also known simply as America, is a large North American country with a rich history and diverse culture. Here's a quick summary:\n\n* Land: It's a federation of 50 states stretching across North America, with Alaska in the northwest and Hawaii far out in the Pacific Ocean. \n* Cities: Major cities include New York City (finance and culture), Washington D.C. (capital), Chicago (architecture), and Los Angeles (Hollywood).\n* Government: The U.S. has a federal republic system with a president as head of state and government.\n* People: With over 331 million people, the US is the third most populated country globally.\n* Size: The US is the world's third-largest country by total area.\n\nIs there anything specific you'd like to know about the USA? I can provide information on its history, geography, culture, or anything else that interests you.", code={}, web_images=[], generated_images=[], response_dict={}), GeminiCandidate(rcid='rc_360c1c4cca257a56', text="The United States of America (USA), also known simply as America, is a large North American country with a rich history and diverse culture. Here's a quick summary:\n\n* Land: It's a federation of 50 states stretching across North America, with Alaska in the northwest and Hawaii out in the Pacific Ocean. \n* Cities: Major cities include New York City (famous for finance and culture), Washington D.C. (the capital), Chicago (known for architecture), and Los Angeles (Hollywood and filmmaking).\n* Government: The U.S. has a federal republic system with a president as head of state.\n* Population: Over 331 million people live in the USA, making it the third most populated country globally.\n* Currency: The U.S. dollar (USD) is the official currency.\n\nIs there anything specific you'd like to know more about, like its history, geography, or culture? ", code={}, web_images=[], generated_images=[], response_dict={})] chosen=0 response_dict={'metadata': ['c_e866d6cc64657b15', 'r_02db8b6d986e4371'], 'prompt_class': None, 'prompt_candidates': [], 'candidates': [{'rcid': 'rc_360c1c4cca257a56', 'text': "The United States of America (USA), also known simply as America, is a large North American country with a rich history and diverse culture. Here's a quick summary:\n\n* Land: It's a federation of 50 states stretching across North America, with Alaska in the northwest and Hawaii out in the Pacific Ocean. \n* Cities: Major cities include New York City (famous for finance and culture), Washington D.C. (the capital), Chicago (known for architecture), and Los Angeles (Hollywood and filmmaking).\n* Government: The U.S. has a federal republic system with a president as head of state.\n* Population: Over 331 million people live in the USA, making it the third most populated country globally.\n* Currency: The U.S. dollar (USD) is the official currency.\n\nIs there anything specific you'd like to know more about, like its history, geography, or culture? ", 'code': {}, 'web_images': [], 'generated_images': []}, {'rcid': 'rc_7c22a90e51a5a891', 'text': "The United States of America (USA), also known simply as America, is a large North American country with a rich history and diverse culture. Here's a quick summary:\n\n* Land: It's a federation of 50 states stretching across North America, with Alaska in the northwest and Hawaii far out in the Pacific Ocean. \n* Cities: Major cities include New York City (finance and culture), Washington D.C. (capital), Chicago (architecture), and Los Angeles (Hollywood).\n* Government: The U.S. has a federal republic system with a president as head of state and government.\n* People: With over 331 million people, the US is the third most populated country globally.\n* Size: The US is the world's third-largest country by total area.\n\nIs there anything specific you'd like to know about the USA? I can provide information on its history, geography, culture, or anything else that interests you.", 'code': {}, 'web_images': [], 'generated_images': []}, {'rcid': 'rc_95390c353613e747', 'text': "The United States of America (USA), also known simply as America, is a large North American country with a rich history and culture. Here's a quick summary:\n\n* Land: It's a federation of 50 states stretching across North America, with Alaska in the northwest and Hawaii far out in the Pacific Ocean. Major cities include New York City (finance and culture), Washington D.C. (capital), Chicago (architecture), and Los Angeles (Hollywood).\n* Size: The US is the world's 3rd largest country by land area and 3rd largest in population (over 334 million).\n* Government: The US is a federal republic with a president as head of state and government. \n* Diversity: The US is a country of immigrants, with a population reflecting a variety of cultures and ethnicities.\n\nIf you're interested in learning more about a specific aspect of the USA, like its history, geography, or culture, just let me know!", 'code': {}, 'web_images': [], 'generated_images': []}]}
Failed to generate content due to an error: Google PeerSide authentication may have expired. Refresh the cookie manually and retry the test.
Details: All parsing strategies failed. Try to use Gemini.send_request(prompt) to get original payload.
Return reponse without parse. If the issue persists, submit it at https://github.com/dsdanielpark/Gemini-API/issues
)]}'

38
[["wrb.fr",null,null,null,null,[3]]]
58
[["di",165],["af.httprm",165,"4134367661909922578",505]]
25
[["e",4,null,null,133]]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants