This is ChatGPT CodeInterpreter for the terminal made in PHP. You can ask it to create charts, analyze CSV files or anything, really.
$ php interpreter.php
Requires PHP and Python (+ Python packages you want ChatGPT to use)
Requires Docker installed and configured locally.
To build the image, run the following command in the root directory of the project:
docker build -t chatgpt-codeinterpreter .
To run the image, run the following command in the root directory of the project:
docker run -it --rm -e OPENAI_API_KEY=$OPENAI_API_KEY -e MODEL=gpt-3.5-turbo -v ./data:/app/data chatgpt-codeinterpreter
You can also use MODEL=gpt-4