Skip to content

Commit

Permalink
Update fetchCompletionItem
Browse files Browse the repository at this point in the history
  • Loading branch information
arshad-yaseen committed Sep 7, 2024
1 parent a8f5b80 commit 1a31e78
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/helpers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ export const fetchCompletionItem = async ({
const {completion} = await HTTP.POST<CompletionResponse, CompletionRequest>(
endpoint,
{
completionMetadata: constructCompletionMetadata({
filename,
position,
model,
language,
technologies,
externalContext,
}),
body: {
completionMetadata: constructCompletionMetadata({
filename,
position,
model,
language,
technologies,
externalContext,
}),
},
},
{
headers: {'Content-Type': CONTENT_TYPE_JSON},
Expand Down

0 comments on commit 1a31e78

Please sign in to comment.