Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/autocomplete/postprocessing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function postprocessCompletion({
completion = completion.replace(/^\n+|\n+$/g, "");
}

if (llm.model.includes("mercury") || llm.model.includes("granite")) {
if (llm.model.includes("granite")) {
// Granite tends to repeat the start of the line in the completion output
let prefixEnd = prefix.split("\n").pop();
if (prefixEnd) {
Expand Down
2 changes: 1 addition & 1 deletion core/nextEdit/providers/MercuryCoderNextEditProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class MercuryCoderProvider extends BaseNextEditModelProvider {
// Extract the code between the markdown code blocks.
return message.slice(
message.indexOf("```\n") + "```\n".length,
message.lastIndexOf("\n\n```"),
message.lastIndexOf("\n```"),
);
}

Expand Down
Loading