Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricklamers/gpt-code-ui
An open source implementation of OpenAI's ChatGPT Code interpreter
https://github.com/ricklamers/gpt-code-ui
chatgpt gpt llms openai
Last synced: about 10 hours ago
JSON representation
An open source implementation of OpenAI's ChatGPT Code interpreter
- Host: GitHub
- URL: https://github.com/ricklamers/gpt-code-ui
- Owner: ricklamers
- License: mit
- Created: 2023-05-10T18:46:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-20T12:34:34.000Z (9 months ago)
- Last Synced: 2024-10-29T15:34:28.459Z (about 1 month ago)
- Topics: chatgpt, gpt, llms, openai
- Language: Python
- Homepage:
- Size: 1.01 MB
- Stars: 3,553
- Watchers: 44
- Forks: 448
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-generative-ai - GPT-Code UI - An open source implementation of OpenAI's ChatGPT Code interpreter. (Coding / Coding Assistants)
- awesome-chatgpt - gpt-code-ui - Code interpreter integrated with ChatGPT. (Web apps / Hosted and self-hosted)
- awesome-ChatGPT-repositories - gpt-code-ui - An open source implementation of OpenAI's ChatGPT Code interpreter (Reimplementations)
- awesome-ai-tools - GPT-Code UI - An open-source implementation of OpenAI's ChatGPT Code interpreter. (Code / Developer tools)
- StarryDivineSky - ricklamers/gpt-code-ui
- awesome-chatgpt - gpt-code-ui - Code interpreter integrated with ChatGPT. (Web apps / Hosted and self-hosted)
- awesome-chatgpt - ricklamers/gpt-code-ui - An open source implementation of OpenAI's ChatGPT Code interpreter (ChatGPT-based applications / Other sdk/libraries)
- awesome-generative-ai - GPT-Code UI - An open source implementation of OpenAI's ChatGPT Code interpreter. (Coding / Coding Assistants)
- awesome-ai - GPT-Code UI - An open source implementation of OpenAI's ChatGPT Code interpreter. (Coding / Other text generators)
- my-awesome - ricklamers/gpt-code-ui - 03 star:3.6k fork:0.4k An open source implementation of OpenAI's ChatGPT Code interpreter (Python)
- AiTreasureBox - ricklamers/gpt-code-ui - 12-07_3568_0](https://img.shields.io/github/stars/ricklamers/gpt-code-ui.svg) |An open source implementation of OpenAI's ChatGPT Code interpreter| (Repos)
- awesome-llm-and-aigc - ricklamers/gpt-code-ui - code-ui?style=social"/> : An open source implementation of OpenAI's ChatGPT Code interpreter. (Applications / 提示语(魔法))
- awesome-llm-and-aigc - ricklamers/gpt-code-ui - code-ui?style=social"/> : An open source implementation of OpenAI's ChatGPT Code interpreter. (Applications / 提示语(魔法))
- awesome-ai-dev-tools - GPT-Code UI - Open-source ChatGPT Code interpreter. (Specialized Tools / IDE Extensions)
- awesome-ai-tool - GPT-Code UI - 开源的ChatGPT代码解释器。 (🌟 编辑推荐 / 编程辅助工具)
- awesome-ai-tool - GPT-Code UI - 开源的ChatGPT代码解释器。 (🌟 编辑推荐 / 编程辅助工具)
README
An open source implementation of OpenAI's ChatGPT [Code interpreter](https://openai.com/blog/chatgpt-plugins#code-interpreter).
Simply ask the OpenAI model to do something and it will generate & execute the code for you.
Read the [blog post](https://ricklamers.io/posts/gpt-code) to find out more.
## Community
Judah Cooper offered to start & curate a Discord community. Join [here](https://discord.gg/ZmTQwpkYu6).## 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`:```sh
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](https://github.com/localagi) took the effort of bundling the Python package in a Docker container. Check it out here: [gpt-code-ui-docker](https://github.com/localagi/gpt-code-ui-docker).## Contributing
Please do and have a look at the [contributions guide](.github/CONTRIBUTING.md)! This should be a community initiative. I'll try my best to be responsive.Thank you for your interest in this project!