mirror of
https://github.com/Iheuzio/gpt-contextfiles.git
synced 2025-07-18 22:10:49 +00:00
Merge pull request #8 from Iheuzio/fix/id-not-selected
Fix/id not selected
This commit is contained in:
commit
c80dc9bda0
@ -114,7 +114,7 @@ const openGPTContextPanelCommand = vscode.commands.registerCommand('extension.op
|
|||||||
// Call OpenAI API with the question and file contents
|
// Call OpenAI API with the question and file contents
|
||||||
try {
|
try {
|
||||||
const chatCompletion = await openai.createChatCompletion({
|
const chatCompletion = await openai.createChatCompletion({
|
||||||
model: "gpt-3.5-turbo",
|
model: "gpt-3.5-turbo-16k",
|
||||||
messages: [
|
messages: [
|
||||||
{ role: "system", content: "Answer the coding questions, only provide the code and documentation, explaining the solution after providing the code." },
|
{ role: "system", content: "Answer the coding questions, only provide the code and documentation, explaining the solution after providing the code." },
|
||||||
{ role: "user", content: question },
|
{ role: "user", content: question },
|
||||||
|
BIN
images/gpt-icon.jpg
Normal file
BIN
images/gpt-icon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
17
package.json
17
package.json
@ -42,6 +42,15 @@
|
|||||||
"group": "navigation"
|
"group": "navigation"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"views": {
|
||||||
|
"explorer": [
|
||||||
|
{
|
||||||
|
"id": "selectedFiles",
|
||||||
|
"name": "Selected Files",
|
||||||
|
"when": "explorerResourceIsFolder && explorerViewletVisible"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -62,5 +71,11 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"openai": "^3.3.0"
|
"openai": "^3.3.0"
|
||||||
}
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/Iheuzio/gpt-contextfiles/"
|
||||||
|
},
|
||||||
|
"icon": "images/gpt-icon.jpg",
|
||||||
|
"publisher": "Iheuzio"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user