Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
fix(cli): don't insert newline at start of chat
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax committed Jul 12, 2023
1 parent b4efde7 commit a0ad8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binaries/llm-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn interactive(
.decoded_tokens()
.last()
.map(|t| *t == b'\n')
.unwrap_or(false)
.unwrap_or(true)
}

let mut infer = |session: &mut InferenceSession, mut prompt: String| {
Expand Down

0 comments on commit a0ad8b4

Please sign in to comment.