Skip to content

Commit

Permalink
remove a debug print and an old comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AsbjornOlling committed Dec 3, 2024
1 parent c2a542c commit f538e92
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nobodywho/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ impl NobodyWhoPromptChat {

#[func]
fn say(&mut self, message: String) {
// TODO: also send system prompt on first message

// simple closure that returns Err(String) if something fails
let say_result = || -> Result<(), String> {
// get the model instance
Expand All @@ -334,7 +332,6 @@ impl NobodyWhoPromptChat {
}
messages.push(("user".to_string(), message));
let text: String = llm::apply_chat_template(model, messages)?;
println!("CHAT PROMPT: {text}");
send_text!(self, text);
Ok::<(), String>(())
};
Expand Down

0 comments on commit f538e92

Please sign in to comment.