Skip to content

Python code interpreter implemented using OpenAI API key,with Chainlit and GPT-4

Notifications You must be signed in to change notification settings

avemio-digital/GPT_CodeInterpreter

 
 

Repository files navigation

GPT_CodeInterpreter Project 🤖

GPT_CodeInterpreter is an AI-driven project designed to carry out various tasks related to code interpretation. It is built on a plugin architecture that can easily extend new features.

Update Log 📝

Our update logs are stored in the update directory. You can click on the links below to view specific updates:

  • Update from August 1, 2023 🆕

    • pip install codebot, then use codebot in the command line,Enjoy !!!!!!!!!!!!!!
    • Introduced a new way to run the code using command line
    • Users only need to install our PyPI package and execute it in the command line

    20230731122824

  • Update from July 30, 2023

Please check back regularly for our latest updates!

Welcome to my project! 👋

I'm glad to introduce you to a project I've been working on. It's a chatbot hosted at this link.

How to Use 📚

To get started, visit the https://chat.zhipenglu.repl.co and type in your query or command. Here are some commands you can use:

  • /set_api_key - Set your OPENAI_API_KEY 🔑
  • /set_model - Set your OPENAI_MODEL 🤖
  • /set_language - Set your language 🌍
  • /set_api_base - Set your OPENAI_API_BASE 🌐
  • /help - Show this help 📘

Enjoy! 🎉

I hope you find this chatbot useful and fun to use. Enjoy!

📣 Feedback & Support

🔧 Test Website Status: The test website is hosted on Replit and was set up in a hurry. As such, it might experience occasional downtime or restarts. Rest assured, I'm actively working on improving its stability over time.

📬 Encountered an Issue? If the test website is down or if you encounter any issues, please don't hesitate to open an issue. I'll do my best to address it as promptly as possible.

💡 Suggestions or Feedback? Your thoughts matter! If you have any suggestions or feedback, I'm all ears. Please share your ideas by opening an issue. I strive to respond and incorporate valuable feedback as quickly as I can.

Thank you for your understanding and support! 🙏

Pictures About GPT_CodeInterpreter

20230726150533

image

image

Video Demonstrations 🎥

07134.1.mp4

Project Features

  • Plugin Architecture: GPT_CodeInterpreter uses a flexible and extensible plugin architecture. Each plugin is a folder containing functions.py and config.json files, defining the functionality and configuration of the plugin.

🌟 Upcoming Features:

  • Official Plugin Integration🔌: By processing the provided standard openapi.yaml from the official sources, we can automatically fetch the corresponding request URLs and method names. These will be combined with local functions and sent to GPT as if invoking local features. Upon user invocation, we'll categorize and request the respective API, ensuring real-time and precise feedback.

  • Role Masking🎭: We've integrated numerous role-based features within our local plugins. For instance, the newly added Vue plugin can be used to modify local Vue projects effortlessly.

  • Join the Movement🤝: We're actively inviting passionate individuals to collaborate with us on this project! Let's move towards a "metaGPT" future and co-develop an array of fascinating role plugins.

🌈 Future Plans:

  • Multi-client Interactions🔗: When running multiple clients, we aspire for these clients to exchange messages, facilitating data transfer amongst different roles.

    Preliminary Concept💡:

    • Server-side⚙️: Operated by a GPT-4 "Administrator" preset role, its main duties will encompass assigning tasks based on users' "Role Masks" and preset objectives, and subsequently evaluating task completion rates.

    • Client-side🖥️: Users can autonomously register with the server and will then be able to receive dispatched tasks and feedback on task completion rates. It can execute certain tasks autonomously and also supports interaction via a web chat interface to accomplish associated tasks.

Let's look forward to the limitless possibilities these new features can offer! 🚀🎉

  • Function Manager: The function manager is responsible for parsing and calling the functions defined in the functions.py file of each plugin.

  • AI Driven: GPT_CodeInterpreter leverages the power of AI to understand and generate human language, enabling it to handle a variety of tasks related to code interpretation.

Current Plugins

  1. General Plugin: This plugin provides the functionality of displaying and uploading images.

  2. Python Interpreter Plugin: This plugin includes a Python executor for running Python code, which is very useful for tasks such as data analysis and table processing.

  3. Vue Plugin: Currently under development, this plugin is designed to work with Vue projects, automating the entire Vue project modification through the chat interface.

Documentation

To get started with GPT_CodeInterpreter, please refer to the following documentation:

Contributing

Contributions are welcome! Please read the contribution guide to learn how to contribute to this project.

Contact

For any inquiries or collaboration opportunities, you can reach me via email at [email protected]. 📧

License

This project is licensed under the terms of the MIT license. 📜

This README now includes the link to the env.md file, indicated with the "Understanding Environment Variables" section. It also features an emoji flag (🔑) to highlight the importance of configuring environment variables for the project. If you have any more requests or need further assistance, please let me know!

About

Python code interpreter implemented using OpenAI API key,with Chainlit and GPT-4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.4%
  • HTML 5.6%
  • Nix 1.0%