• Stars
    star
    3,539
  • Rank 12,543 (Top 0.3 %)
  • Language
    Python
  • License
    MIT License
  • Created over 1 year ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An open source implementation of OpenAI's ChatGPT Code interpreter
GPT-Code logo

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

GPT-Code logo

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!

More Repositories

1

gridstudio

Grid studio is a web-based application for data science with full integration of open source data science frameworks and languages.
JavaScript
8,875
star
2

shell-ai

LangChain powered shell command generator and runner CLI
Python
993
star
3

x-ai-content-filter-groq

Filter X content using LLM API requests, configurable, based on Groq API
JavaScript
120
star
4

slack-ipython

A Python Jupyter Kernel in Slack. Just send Python code as a message.
Python
59
star
5

buildanything

Generate any HTML page/app and see it stream in real-time.
HTML
25
star
6

6PP-database-nederland

Repository met 6PP data van Nederland.
14
star
7

orchest-weaviate-tweakers-search

Jupyter Notebook
11
star
8

genetic-reinforcement-algorithms-in-js

This repository contains my experimental sandbox for Genetic Algorithms in JavaScript for reinforcement learning environments.
JavaScript
11
star
9

all-data-tools

All Data Tools
Python
10
star
10

twitter-sentiment-flask-python

HTML
8
star
11

malloy-node-red-flows

Malloy on DuckDB for ETL flows in Node-RED
Shell
7
star
12

orchest-dbt

This repo demonstrates how to combine dbt with Orchest using their `jaffle_shop` example.
Jupyter Notebook
6
star
13

orchest-coqui-tts

This repository demonstrates an Orchest pipeline that generates an audio fragment using the Quoki TTS engine and sends it as a message on Slack
Jupyter Notebook
6
star
14

html5pong

An HTML5 Pong game Canvas Experiment
JavaScript
5
star
15

openui-groq

TypeScript
3
star
16

funcchain-demo

Python
3
star
17

embedding-explorer

PCA for embedding exploration with OpenAI, Streamlit, scikit-learn and Plotly
Python
3
star
18

orchest-meilisearch-pywebio-hn

Search HN user comments through a PyWebIO interface backed by a Meilisearch DB
Jupyter Notebook
2
star
19

hello-wasp

Saying hi to the cool new wasp-lang.dev project!
JavaScript
2
star
20

collegerama-scrape

JavaScript
2
star
21

formula-1-lap-comparison-orchest

Jupyter Notebook
2
star
22

orchest-multi-language-pipeline

Orchest pipeline demonstrating use of multiple languages in a single pipeline
Jupyter Notebook
2
star
23

CSS3-test

2
star
24

ray_tutorial_orchest

Jupyter Notebook
2
star
25

orchest-questdb

Jupyter Notebook
1
star
26

langsmith-example

Python
1
star
27

orchest-hello-evidently

Jupyter Notebook
1
star
28

gitpod-playground

1
star
29

photon-orchest-pipeline

Python
1
star
30

two-phase-pipeline-streamlit

Python
1
star
31

orchest_pipelines_examples

Example pipelines to use in Orchest
Jupyter Notebook
1
star
32

popular-frontend-github

This repo contains an Orchest project with a pipeline that fetches trending frontend repos in a Notebook.
Jupyter Notebook
1
star
33

koehandel

ActionScript
1
star
34

nlp-talk-orchest

How to train an NLP model from scratch
Jupyter Notebook
1
star
35

thinkstudios-website

CSS
1
star
36

orchest-hello-spark

This repo shows how to run (Py)Spark in Orchest (locally)
Jupyter Notebook
1
star
37

pg-voiced

Website that has PG essays voiced by ElevenLabs. Iā€™m out of credits, please make PRs
HTML
1
star
38

orchest-pycaret

Demonstration of how to use PyCaret for regression prediction in Orchest
Jupyter Notebook
1
star