Skip to content

Commit

Permalink
fixed rendering completions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlisahuang committed Jan 9, 2024
1 parent 7c6cc9e commit 1434eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/leap/browser/LeapUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class LocalUtils implements LeapUtils {
const codes = Array.from({ length: (request.n || 1) }, () => "");
for await (const part of completions) {
const i = part.choices[0].index;
const delta = part.choices[0].delta;
const delta = part.choices[0].delta.content ?? '';
codes[i] += delta;
progressCallback(part);
}
Expand Down

0 comments on commit 1434eea

Please sign in to comment.