dbian / chat-gpt-vscode-extension

ChatGpt assistant completion for vscode extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGpt extension for VSCode

This is a chat bot that uses ChatGpt api. After setting your ChatGpt api key, you can use the chat bot and ask what you want. To learn more please visit offical OpenAI.

In the future, we are planning to add settings panel. So, user is able to change settings.

Appendix

This chat bot uses VSCode api. Your API KEY will be safely stored in your workspace. with new version v1.1.0 add new three commands to VSCode editor context menu with their keyboard shortcuts below.

  • ChatGpt Add Comments(ctrl+ alt + c, shift + cmd + c). Support all language.
  • ChatGpt Add Documentaions(ctrl + alt + d, shift + cmd + d). Only support javaScript, TypeScript, Java and C#.
  • ChatGpt Refactor(ctrl + alt + r, shift + cmd + r). Only support javaScript, TypeScript, Java and C#.

The result of these commands depent on ChatGpt "text-davinci-003" model.

ChatGpt Models:

Chat completions defaults;

  • model : "gpt-3.5-turbo"
  • temperature : 0.7
  • stream: true
  • messages: [{ role: "user", content: prompt }]

Text completions defaults;

  • model : "text-davinci-003"
  • max_tokens: 2048,
  • temperature: 0.0,
  • top_p: 0.1

Installation

Your VSCode version number has to be greater than or equal to 1.77.0 version. Install from VSCode Extensions panel or vscode-chat-gpt from VSCode Marketplace

  Go to Settings > Extensions > vscode-chat-gpt

Release Notes

  • v0.0.1 first relese with simple command and chat panel.
  • v0.0.2 Add icon start button on VSCode Activity bar.
  • V0.0.3 bugfix updates
  • V1.0.0 Add Explorer View and show history of last 10 queries.
  • V1.1.0 Add new three commands to VSCode editor context menu. These: ChatGpt Add Comments, ChatGpt Add Documentaions and ChatGpt Refactor.
  • V1.1.1 Add conditions to context menu commands.
  • V1.1.2 Add temperature settings to chat panel and add editor logo.

Using Extension

  • Open chat panel.

alt text

  • Set api key.

alt text

  • Say hello!

alt text

  • Wite a simple typescript code that find squareroot of a number.

alt text

  • Click recent query in the history.

alt text

  • Add comments.

alt text

alt text

  • Add documentations.

alt text

Roadmap

  • Add ChatGpt Create image model.
  • Add ChatGpt Edit image model.
  • Add ChatGpt Create image variation model.

🚀 About Me

I'm a full stack developer. I've been dealing with software since 2016. I worked on a lot of projects so far. My strongest skills are C#, .Net Core, MsSql, javaScript, TypeScript and Angular2+. Also, I am working on sample like this extension Nodejs, MongoDb projects.

About

ChatGpt assistant completion for vscode extension


Languages

Language:TypeScript 87.7%Language:JavaScript 6.2%Language:CSS 6.1%