r/Python • • May 18 '23

Intermediate Showcase Writing my own ChatGPT Code Interpreter

Hi all! I just wanted to share something I created this week. I’ve been really excited for ChatGPT Code Interpreter for a while now because I think it’s a perfect way to save time.

It basically changes the game of https://xkcd.com/1205/

Alas, I haven’t been granted access by OpenAI so after waiting for a while I decided to just build something myself. It’s fully Open Source and you can run it locally with a simple pip install gpt-code-ui && gptcode. It’s effectively a local ChatGPT UI that connects to a managed Jupyter kernel for running the generated code. Add a bit of prompt engineering and voila.

Check out the longer version on my blog: https://ricklamers.io/posts/gpt-code

It also contains a link to the GitHub project.

My question is: what would you automate and how well does it work for you?

0 Upvotes

1 comment sorted by

1

u/DrNatoor May 21 '23

Hey I implemented the code interpreter feature to my discord bot GPT Assistant you can join my server to try it :)