vscode extension, add a file, ask gpt3.5 with all the files you pass into it up to 16k tokens
Go to file
2023-06-21 13:51:46 -04:00
.vscode Base files for creation of extension 2023-06-18 15:42:52 -04:00
images Updated contents of manifest data 2023-06-21 13:51:46 -04:00
test Base files for creation of extension 2023-06-18 15:42:52 -04:00
.eslintrc.json Base files for creation of extension 2023-06-18 15:42:52 -04:00
.gitignore Base files for creation of extension 2023-06-18 15:42:52 -04:00
.vscodeignore Base files for creation of extension 2023-06-18 15:42:52 -04:00
CHANGELOG.md Base files for creation of extension 2023-06-18 15:42:52 -04:00
extension.js fix(formatting): Files now formatted like it was previously when passed through 2023-06-21 13:14:31 -04:00
jsconfig.json Base files for creation of extension 2023-06-18 15:42:52 -04:00
LICENSE.txt added license 2023-06-19 23:21:07 -04:00
package-lock.json feature(openai-api): Allows the user to submit the question and contents through to the model. Untested 2023-06-21 11:45:34 -04:00
package.json Updated contents of manifest data 2023-06-21 13:51:46 -04:00
README.md Merge branch 'main' into dev 2023-06-21 13:26:01 -04:00
vsc-extension-quickstart.md Base files for creation of extension 2023-06-18 15:42:52 -04:00

gpt-contextfiles

** currently in development, if you'll like to contribute or provide any feedback check out the link **

I was annoyed with copying responses into chatgpt and other LLMs for debugging my code across files, so I decided to make an extension that will do that.

You simply right click each file you want to pass through, check or uncheck the checkbox, then enter your question and pass along the response over the api to your LLM.

Installation

Add your api key to OPENAI_API_KEY for your windows/linux environment variable (tested with system variable)

Features

Clear -> Clears the files currently available

Submit -> Submits the query to the api

Refresh -> refreshes the window so that all new files will be available for that session.

User must ctrl+shift+p and click on the Open GPT Context Panel option and then add files (before or after), then input the question.

Examples

We can select two files we want to pass through, however we can uncheck one of them for later debugging and enter our question:

What does this do?
c:\dev\test\gpt-contextfiles-test\program.js:
\```
	window.alert("Hello World!")
\```

Selected Files:
[x] c:\dev\test\gpt-contextfiles-test\program.js
[ ] c:\dev\test\gpt-contextfiles-test\program2.js

Expected Ouput:

The window.alert() method is a built-in JavaScript function that displays an alert box with a specified message and an OK button. In this case, the message is "Hello World!".