gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Please reply

Open Tanjiroop opened this issue 1 year ago • 5 comments

How to set gemini cookies

Tanjiroop avatar Nov 03 '24 10:11 Tanjiroop

Can u give me the code I'll have cookies but idk where I'll add that

Tanjiroop avatar Nov 03 '24 10:11 Tanjiroop

@Tanjirotg Hi. use this docs: https://github.com/xtekky/gpt4free?tab=readme-ov-file#cookies set_cookies params:

  1. site (.google.com)
  2. variable for needed cookies (__Secure-1PSID)
  3. Value (like key)

Or other way get info. Go to needed site and press F12 -> Network. Find ___Secure-1PSID and copy for variable above.

TheFirstNoob avatar Nov 03 '24 15:11 TheFirstNoob

http://YOURSERVERIPADRESS:7900/?autoconnect=1&resize=scale&password=secret http://0.0.0.0:7900/?autoconnect=1&resize=scale&password=secret close all browser open windows and chat again.... so it will open a browser and you can login into browser

or use the ___Secure-1PSID from browser

in my case the .har and cookie files in the default ./har_and_cookies directory dont work for google.....just for openai

hqnicolas avatar Nov 04 '24 16:11 hqnicolas

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Nov 12 '24 00:11 github-actions[bot]

Hey, you need to load cookies in Python. Check out the documentation for more info. Turn on debug mode to see more details.

hlohaus avatar Nov 15 '24 21:11 hlohaus