We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6033bcf commit 88998ccCopy full SHA for 88998cc
src/extension.ts
@@ -258,11 +258,11 @@ export function activateOpenAI(context: vscode.ExtensionContext) {
258
async function requestMqlTranslation(comment: string): Promise<string> {
259
return openAIClient
260
.createCompletion({
261
- model: "curie:ft-sublime-security-2023-04-21-20-26-44",
+ model: "curie:ft-sublime-security-2023-08-05-00-34-40",
262
max_tokens: 128,
263
temperature: 0.3,
264
- stop: "END",
265
- prompt: `in mql ${comment.replace("'", "\"")} ->`,
+ stop: ["\n"],
+ prompt: `${comment.replace("'", "\"")} ->`,
266
})
267
.catch((err: any) => {
268
vscode.window.showErrorMessage("Error fetching MQL translation: ", err);
0 commit comments