The ChatGPT Problem Solver is a Python script that uses "Chain Prompting" and the "Tree of Thoughts" principle to solve problems, inspired by this YouTube video. The script leverages the RevChatGPT library under the hood to talk to ChatGPT.
Warning
As of now this doesn't work, the prompts need serious work to make it work.
- Poetry: Install Poetry from the official website.
- Clone the repository:
git clone https://www.github.com/ashishbinu/chatgpt-problem-solver
cd chatgpt-problem-solver
- Install dependencies using Poetry:
poetry install
- Copy
.env.example
to.env
.
cp .env.example .env
- Add your
OPENAI_ACCESS_TOKEN
value in the.env
file. Obtain the access token value from here.
To run the script, use the following command:
poetry run python main.py
Once the script is running, input the problem you want to solve using ChatGPT.
Alternatively, you can use Docker to run the ChatGPT Problem Solver:
- Build the Docker image:
docker build -t chatgpt-problem-solver .
-
Add your
OPENAI_ACCESS_TOKEN
value in the.env
file. -
Run the Docker container:
docker run -it --rm --env-file .env chatgpt-problem-solver
Contributions are welcome! If you encounter any issues, have ideas for improvements, or want to add new features, feel free to create issues or submit pull requests.
This project is licensed under the MIT License. Your feedback and contributions are invaluable in making this project better. Thank you for your support!