Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 1.88 KB

README.md

File metadata and controls

73 lines (44 loc) · 1.88 KB

ChatGPT Problem Solver

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.

Prerequisites

Installation

  1. Clone the repository:
git clone https://www.github.com/ashishbinu/chatgpt-problem-solver
cd chatgpt-problem-solver
  1. Install dependencies using Poetry:
poetry install
  1. Copy .env.example to .env.
cp .env.example .env
  1. Add your OPENAI_ACCESS_TOKEN value in the .env file. Obtain the access token value from here.

Usage

Running the Script

To run the script, use the following command:

poetry run python main.py

Input the Problem

Once the script is running, input the problem you want to solve using ChatGPT.

Docker Installation

Alternatively, you can use Docker to run the ChatGPT Problem Solver:

  1. Build the Docker image:
docker build -t chatgpt-problem-solver .
  1. Add your OPENAI_ACCESS_TOKEN value in the .env file.

  2. Run the Docker container:

docker run -it --rm --env-file .env chatgpt-problem-solver

Contributing

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.

License

This project is licensed under the MIT License. Your feedback and contributions are invaluable in making this project better. Thank you for your support!