diff --git a/core/autocomplete/filtering/streamTransforms/lineStream.ts b/core/autocomplete/filtering/streamTransforms/lineStream.ts index 3cf1cec9f..380d56895 100644 --- a/core/autocomplete/filtering/streamTransforms/lineStream.ts +++ b/core/autocomplete/filtering/streamTransforms/lineStream.ts @@ -166,8 +166,13 @@ export const CODE_KEYWORDS_ENDING_IN_SEMICOLON = ["def"]; export const CODE_STOP_BLOCK = "[/CODE]"; export const BRACKET_ENDING_CHARS = [")", "]", "}", ";"]; export const PREFIXES_TO_SKIP = [""]; -export const LINES_TO_STOP_AT = ["# End of file.", ""]; +export const LINES_TO_STOP_AT = [ + "# End of file.", + "", + "```", +]; +export const LINES_TO_SKIP = ["", "<|updated_code|>"]; export const LINES_TO_REMOVE_BEFORE_START = [ "", "[CODE]",