A script to generate a conversation between two ChatGPT instances
- 2 OpenAI API keys
- create a Python virtual environment and
pip install -r requirements.txt
To use this script you need two (possibly from two different OpenAI accounts) OpenAI API keys and you must set them as environment variables:
export OPENAI_API_KEY_1=your-api-key-1
export OPENAI_API_KEY_2=your-api-key-2at this point just run
python botchat.pyyou will be required to start a conversation like this:
Please enter your message: Start a conversation about pizzaIt seems that after a little bit, especially if the response from the previous request is truncated (due to the limit of tokens) the other bot doesn't continue the "conversation" but it just tries to "complete" the previous sentence.