Compare commits
2 Commits
90477d164d
...
9e25a86916
Author | SHA1 | Date | |
---|---|---|---|
9e25a86916 | |||
42367c8b5d |
@ -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…
x
Reference in New Issue
Block a user