Skip to content

Commit

Permalink
Implemented conversation (followup questions)
Browse files Browse the repository at this point in the history
- v2.0.0 of chatgpt-api
- response timeout setting
- updated README
  • Loading branch information
timkmecl committed Dec 8, 2022
1 parent 81fc42a commit 0ab4077
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 151 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ This Visual Studio Code extension allows you to use the [unofficial ChatGPT API]

## Features
- **Ask general questions** or use code snippets from the editor to query ChatGPT via an input box in the sidebar
- Right click on selection and run one of the context menu **shortcuts**
- Right click on a code selection and run one of the context menu **shortcuts**
- View ChatGPT's responses in a panel next to the editor
- Ask **follow-up questions** to the response (conversation context is maintained)
- **Insert code snippets** from the AI's response into the active editor by clicking on them


Expand Down Expand Up @@ -62,6 +63,10 @@ You can select some code in the editor, right click on it and choose one of the

`Ask ChatGPT` is also available when nothing is selected. For the other four commands, you can customize the exact prompt that will be sent to the AI by editing the extension settings in VSCode Preferences.


Because ChatGPT is a conversational AI, you can ask follow-up questions to the response. The conversation context is maintained between queries, so you can ask multiple questions in a row.
To **reset the conversation context**, click `ctrl+shift+p` and select `ChatGPT: Reset Conversation`.

---

Please note that this extension is currently a proof of concept and may have some limitations or bugs. We welcome feedback and contributions to improve the extension.
Expand Down
166 changes: 89 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0ab4077

Please sign in to comment.