Compare commits

...

2 Commits

  1. 1
      src/extension.ts
  2. 2
      src/openai-api.ts

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

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

Loading…
Cancel
Save