Compare commits

...

2 Commits

Author SHA1 Message Date
9e25a86916
comment 2023-12-24 23:34:53 +01:00
42367c8b5d
removed some unused variables 2023-12-24 23:33:37 +01:00
2 changed files with 1 additions and 2 deletions

View File

@ -78,6 +78,7 @@ export function activate(context: vscode.ExtensionContext) {
// TODO: prune text up to a maximum context length // TODO: prune text up to a maximum context length
// Prefix the filename in a comment // Prefix the filename in a comment
// TODO: add a config for this
let pfx: string, sfx: string; let pfx: string, sfx: string;
const fname = document.fileName.split('/').at(-1); const fname = document.fileName.split('/').at(-1);
const lang = document.languageId; const lang = document.languageId;

View File

@ -141,8 +141,6 @@ export async function openAIMakeRequest(
tokens: 0, tokens: 0,
time: 0, time: 0,
}; };
let data: OpenAICompletionResponse;
const is_stream: boolean = request_body.stream === true ? true : false;
// format the request // format the request
const request: RequestInit = { const request: RequestInit = {