Skip to content

Commit

Permalink
Fix interactive system prompt overwriting --prompt.
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
Noeda committed Apr 7, 2023
1 parent 61b68c6 commit 8d6897e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rllama_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,9 @@ fn command_line_inference(
.into(),
);
}
prompt = interactive_system_prompt.clone();
if start_interactive {
prompt = interactive_system_prompt.clone();
}

let mut toks_id: Vec<TokenId> = tok.tokenize_to_ids(prompt.clone());
let mut toks_str: String = prompt.clone();
Expand Down

0 comments on commit 8d6897e

Please sign in to comment.