Merge pull request #7 from Iheuzio/fix/gpt-context

fix(context-16k): model uses 16k tokens now
This commit is contained in:
Iheuzio 2023-06-21 20:36:28 -04:00 committed by GitHub
commit c036caef9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 },