Skip to content

Commit

Permalink
Disable syntax highlighting in raw completion cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Nov 23, 2024
1 parent fb59488 commit a494bd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llamafile/chatbot_repl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ void repl() {
}

// perform important setup
HighlightMarkdown highlighter;
ColorBleeder bleeder(&highlighter);
HighlightTxt txt;
HighlightMarkdown markdown;
ColorBleeder bleeder(is_base_model() ? (Highlight *)&txt : (Highlight *)&markdown);
llama_sampling_context *sampler = llama_sampling_init(g_params.sparams);
signal(SIGINT, on_sigint);

Expand Down

0 comments on commit a494bd3

Please sign in to comment.