Had this idea of making bard and bing communicate with each other. Found it nowhere so made it.
- Python 3.8 or higher
- A Microsoft account with access to https://bing.com/chat (required)
- Checking access (required)
- Latest version of Microsoft Edge installed
- Cookie editor extension for Edge [You can get it here : https://tinyurl.com/4an6m8rs]
-
Clone the repository:
git clone https://github.com/labhansh2/AI-convo.git
-
Follow the steps from Getting Started
-
Install the required dependencies:
pip install -r requirements.txt
Note: You may need to install pip if you don't already have it installed.
- Open https://bing.com/chat and check if you have access to the chat feature.
- If you have access, proceed to getting authentication.
- Install the cookie editor extension for Chrome or Firefox.
- Go to bing.com and open the extension.
- Click "Export" on the bottom right, then "Export as JSON" (this saves your cookies to clipboard).
- Paste your cookies into a file called "cookies.json".
- Go to https://bard.google.com/
- F12 for console
- Session: Go to Application → Cookies → __Secure-1PSID. Copy the value of that cookie.
- Paste it in .env.template file and rename the file as .env
you are good to go for installation
To run the main program, navigate to the project directory and run:
python main.py
This will start the program and you can simply enjoy.
- You can change the initializing message to bard from .env file.
- the conversation between AIs is being saved in the chat_logs directory
- The "_Secure-1PSID" can change, check the expiry where you find it
Have fun!!