summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-18 11:33:42 +0000
committersigoden <sigoden@gmail.com>2024-04-18 11:34:19 +0000
commite78750412dcc079bf3d05b73f58c08803b7d866f (patch)
tree331314da7b782fd3493eec8a7ea55d9f281b389f
parentb9bde15c1fadd88ed35b915481d90ea2c799b8bb (diff)
downloadaichat-e78750412dcc079bf3d05b73f58c08803b7d866f.tar.gz
refactor: adjust command revision prompt
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 90e1136..4ab4cb8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -198,7 +198,10 @@ fn execute(config: &GlobalConfig, mut input: Input) -> Result<()> {
}
"3" => {
let revision = Text::new("Enter your revision:").prompt()?;
- let text = format!("INPUT: {}\n{eval_str}\nINPUT: {revision}\n", input.text());
+ let text = format!(
+ "[INST] {} [/INST]\n{eval_str}\n[INST] {revision} [/INST]\n",
+ input.text()
+ );
input.set_text(text);
return execute(config, input);
}