summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config.rs4
-rw-r--r--src/main.rs1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 729320e..c42b11b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -35,12 +35,10 @@ pub struct Role {
pub name: String,
/// Prompt text send to ai for setting up a role
pub prompt: String,
- /// First sentense will append to prompt
- pub first_sentense: String,
}
impl Role {
pub fn generate(&self, text: &str) -> String {
- format!("{} {} {}", self.prompt, self.first_sentense, text)
+ format!("{} {}", self.prompt, text)
}
}
diff --git a/src/main.rs b/src/main.rs
index 3a76049..97399fd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -194,6 +194,7 @@ fn run_repl(
Some(name) => match config.roles.iter().find(|v| v.name == name) {
Some(role_) => {
*role = Some(role_.clone());
+ dump("", 1);
}
None => dump("Unknown role.", 2),
},