Coder Social home page Coder Social logo

andersonsouzabass / chatgpt-code-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edmar/chatgpt-code-assistant

1.0 0.0 0.0 762 KB

ChatGPT Plugin for retrieving external API documentation and reading and writing to local files.

Python 100.00%

chatgpt-code-assistant's Introduction

ChatGPT Code Assistant Plugin

As an avid coder, I embarked on a personal experiment to enhance my coding experience and boost my productivity. I found ChatGPT to be a valuable tool, but copying and pasting generated code into my editor often proved inconvenient and disrupted my creative flow.

I also faced challenges due to ChatGPT's inability to access my local file system and external documentation, as it couldn't utilize my current project's code as context. This meant I had to manually copy my code to the website for further generation.

To overcome these limitations, I decided to create the ChatGPT Code Assistant Plugin. By granting ChatGPT access to both my local file system and the internet, it can now effortlessly:

  • Reference online documentation to provide accurate API calls and avoid guesswork.
  • Incorporate the code from my current project as context, generating more relevant and coherent suggestions.
  • Read and utilize files within my project to improve overall code integration.
  • Directly write to files in my project, streamlining the coding process and eliminating the need for manual copy-pasting.

Through this personal experiment, I have experienced the enhanced capabilities of the ChatGPT Code Assistant Plugin and revolutionized the way I code. I hope others can also benefit from this solution and transform their coding journeys.

Installation

pip install -r requirements.txt

Usage

Run the following command to start the server:

uvicorn main:app --reload

Now, use ngrok to expose the server to the internet. Ngrok is needed because the chatgpt plugins requires an https url to work.

ngrok http 8000

ngrok

Use the ngrok url to set the server url in the plugin settings.

plugin settings

Here is a demo of the plugin in action:

demo

chatgpt-code-assistant's People

Contributors

edmar avatar

Stargazers

Anderson Lopes de Souza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.