An Open Source version of ChatGPT Code Interpreter
Project description
An open source implementation of OpenAI's ChatGPT Code interpreter.
Simply ask the OpenAI model to do something and it will generate & execute the code for you.
Read the blog post to find out more.
Community
Judah Cooper offered to start & curate a Discord community. Join here.
Installation
Open a terminal and run:
pip install gpt-code-ui
gptcode
In order to make basic dependencies available it's recommended to run the following pip
install
in the Python environment that is used in the shell where you run gptcode
:
pip install "numpy>=1.24,<1.25" "dateparser>=1.1,<1.2" "pandas>=1.5,<1.6" "geopandas>=0.13,<0.14" "tabulate>=0.9.0<1.0" "PyPDF2>=3.0,<3.1" "pdfminer>=20191125,<20191200" "pdfplumber>=0.9,<0.10" "matplotlib>=3.7,<3.8"
User interface
Features
- File upload
- File download
- Context awareness (it can refer to your previous messages)
- Generate code
- Run code (Python kernel)
- Model switching (GPT-3.5 and GPT-4)
Misc.
Using .env for OpenAI key
You can put a .env in the working directory to load the OPENAI_API_KEY
environment variable.
Configurables
Set the API_PORT
, WEB_PORT
, SNAKEMQ_PORT
variables to override the defaults.
Set OPENAI_BASE_URL
to change the OpenAI API endpoint that's being used (note this environment variable includes the protocol https://...
).
You can use the .env.example
in the repository (make sure you git clone
the repo to get the file first).
For Azure OpenAI Services, there are also other configurable variables like deployment name. See .env.azure-example
for more information.
Note that model selection on the UI is currently not supported for Azure OpenAI Services.
cp .env.example .env
vim .env
gptcode
Docker
localagi took the effort of bundling the Python package in a Docker container. Check it out here: gpt-code-ui-docker.
Contributing
Please do and have a look at the contributions guide! This should be a community initiative. I'll try my best to be responsive.
Thank you for your interest in this project!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deepbrainz_interpreter-0.42.41.tar.gz
.
File metadata
- Download URL: deepbrainz_interpreter-0.42.41.tar.gz
- Upload date:
- Size: 423.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6abdab2a9e2a4c0734872bc11eb486441d96d7b3ba03be294dbe59f304415708 |
|
MD5 | ed07d9d7dd55714f8490c46211c9d0ee |
|
BLAKE2b-256 | 5e43702081245c41f04e4f8189df2183474c42b1c97cd71444dfdc9c78cea98d |
File details
Details for the file deepbrainz_interpreter-0.42.41-py3-none-any.whl
.
File metadata
- Download URL: deepbrainz_interpreter-0.42.41-py3-none-any.whl
- Upload date:
- Size: 426.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0739fccdb937eb143e7cd64fa27a1a1d1c7ce4b6c1e5adfae6592df7d73ab24 |
|
MD5 | decb6afb7cb1aaa5be97bef1d259ab90 |
|
BLAKE2b-256 | 172e0b631c0cc88c3a33f4a870457fb50ea40986cf7a43cc7e93c54b3e11f11a |