#Code Interpreter implemented by GPT-4 API.

18 messages · Page 1 of 1 (latest)

sterile copper
#

The GPT_CodeInterpreter is a Python-based project that facilitates asynchronous function execution, primarily designed for developers and AI enthusiasts. It allows users to create, describe, and utilize custom asynchronous functions, using OpenAI's GPT model for understanding the functions' usage and purpose.

Installation and Setup
The project is dependent on Python (version 3.8 or above recommended) and the Chainlit package. Environment variables including keys for APIs like OpenAI and database credentials are required for the project's setup.

The project supports environmental variables which can either be set in the shell or in a .env file. The python-dotenv package can be used to load these variables.

Functionality
Once cloned from the GitHub repository, the main script can be executed directly. The project includes a robot_functions.py module that contains utility functions. Users can also add their own custom asynchronous functions to this file. The provided docstrings of these functions are parsed and used by the GPT model to understand their purpose and usage.

The existing functions include capabilities like executing Python code, requesting file uploads, displaying images, installing Python packages, querying and saving data to a database, generating DALL-E and Stable Diffusion images, and many more.

Customization and Contact
The GPT_CodeInterpreter project offers customization options to the users, who can add their own functions to meet specific needs. For any queries or assistance, users can contact at 402087139@qq.com.

The project link is https://github.com/boyueluzhipeng/GPT_CodeInterpreter.git.
https://cdn.discordapp.com/attachments/1128997233950457876/1128997236639006790/image.png
https://cdn.discordapp.com/attachments/1128997233950457876/1128997237339463731/image.png
https://cdn.discordapp.com/attachments/1128997233950457876/1128997237700186172/image.png

proud matrix
#

So similar to the Code Interpreter plugin for ChatGPT+?

sterile copper
sterile copper
deft fjord
#

is there an easy way to play with it online?

#

does it also create charts?

sterile copper
# deft fjord does it also create charts?

I have updated my GitHub repository, now it supports fast replit.com. It can be more convenient to get it up and running quickly, you can go try it out. The current logic is to use Python to process the data and then save it as an image, the front end will display the processed saved images, indeed it can handle charts.

deft fjord
#

did anybody get to run it on replit?

proud matrix
deft fjord
#

I get "Error communicating with openAI"

leaden zealot
#

How were you able to get it running like code interpreter?

sterile copper
#

I have recently updated the code to bring a better experience with the interpreter, and also provided a testing website. Welcome everyone to take a look and provide feedback or suggestions.

slim mulch