Christopher-Hayes / vscode-chatgpt-reborn

Refactor, improve, and debug your code in VSCode with GPT-3 and GPT-4.

Home Page:https://marketplace.visualstudio.com/items?itemName=chris-hayes.chatgpt-reborn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSCode Reborn AI

VSCode Reborn AI is a Visual Studio Code extension that allows you to use the ChatGPT API to write, refactor, and improve your code.

Get for VSCode

Search for "VSCode Reborn AI" in the VSCode extension search.

Or install directly:

Or build this extension yourself (scroll further down).

About this fork

This is a fork of the popular, but now discontinued vscode-chatgpt extension. Full credit to @gencay for working on the original extension and later open-sourcing it.

Gencay has since released a new extension, "Reborn AI: Genie AI", that is a continuation of his work: https://github.com/ai-genie/chatgpt-vscode.

How these extensions differ is that Genie AI is a proprietary extension, and VSCode Reborn AI is an open-source extension.

Local LLMs and Proxies

Any tool that is "compatible" with the OpenAI API should work with this extension. The tools listed below are the ones I've personally tested.

Local LLMs tested to work with this extension

Alternative APIs tested to work with this extension

Proxies

I've set up a proxy for anyone that needs it at https://openai-proxy.dev/v1. It's running x-dr/chatgptProxyAPI code on CloudFlare Workers. This is mainly for anyone who wants to use OpenAI, but cannot due to api.openai.com being blocked.

Internationalization

Most of this extension has been translated to a ~dozen languages, but the translations are not complete and may not be correct in some places. If you'd like to help with translations, please see the i18n discussion

Build this extension yourself

To set up the project, first clone the repository:

git clone https://github.com/christopher-hayes/vscode-chatgpt-reborn.git

Next, change into the project directory and install the dependencies using Yarn:

cd vscode-chatgpt-reborn
yarn install

Running Scripts

You can run the following scripts using Yarn:

Build the extension

yarn run build

Watch for changes and rebuild automatically

yarn run watch

Developing this extension in VS Code

To test the vscode-chatgpt-reborn extension in Visual Studio Code, follow these steps:

  1. Open the project directory in Visual Studio Code.

  2. Press F5 or click Run > Start Debugging in the menu to start a new Extension Development Host instance with the extension loaded.

  3. In the Extension Development Host instance, test the extension's functionality.

  4. Use the Debug Console in the main Visual Studio Code window to view any output or errors.

  5. To make changes to the extension, update the code, and then press Ctrl + Shift + F5/Cmd + Shift + F5 (or click Run > Restart Debugging) to reload the extension.

  6. Once you are satisfied with your changes, submit a pull request to this repository.

Changelog

See the CHANGELOG for a list of changes.

Tech

Yarn - TypeScript - VSCode Extension API - React - Redux - React Router - Tailwind CSS

  • The UI is built with TailwindCSS. But, respecting VSCode's UI consistency and theme support is still a priority.
  • This does not use VSCode's WebView UI Toolkit. But, I'm open to switching to the WebView UI toolkit since it better aligns with VSCode's UI.

License

This project is licensed under the ISC License - see the LICENSE file for details.

About

Refactor, improve, and debug your code in VSCode with GPT-3 and GPT-4.

https://marketplace.visualstudio.com/items?itemName=chris-hayes.chatgpt-reborn

License:ISC License


Languages

Language:TypeScript 85.5%Language:JavaScript 13.0%Language:CSS 1.5%