diff options
| author | sigoden <sigoden@gmail.com> | 2023-10-30 15:08:49 +0800 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2023-10-30 15:08:49 +0800 |
| commit | 2168610dbda294420a88a0bee4e56157c8fa3407 (patch) | |
| tree | 66c34330dfff710e91834328e71c426d8ed4cbdc /src/config/role.rs | |
| parent | 23e9fb5bbf96cd4a93f4150659a99b4055623b9f (diff) | |
| download | aichat-2168610dbda294420a88a0bee4e56157c8fa3407.tar.gz | |
chore: spellcheck
Diffstat (limited to 'src/config/role.rs')
| -rw-r--r-- | src/config/role.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/role.rs b/src/config/role.rs index 87aca5e..16a6400 100644 --- a/src/config/role.rs +++ b/src/config/role.rs @@ -22,7 +22,7 @@ impl Role { Ok(output) } - pub fn embeded(&self) -> bool { + pub fn embedded(&self) -> bool { self.prompt.contains(INPUT_PLACEHOLDER) } @@ -42,7 +42,7 @@ impl Role { } pub fn echo_messages(&self, content: &str) -> String { - if self.embeded() { + if self.embedded() { merge_prompt_content(&self.prompt, content) } else { format!("{}\n{content}", self.prompt) @@ -50,7 +50,7 @@ impl Role { } pub fn build_messages(&self, content: &str) -> Vec<Message> { - if self.embeded() { + if self.embedded() { let content = merge_prompt_content(&self.prompt, content); vec