Skip to content

Commit

Permalink
Add new line between two successives answers
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Jan 13, 2024
1 parent 49162ec commit 5109979
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use tui::backend::CrosstermBackend;
use tui::Terminal;

use tenere::llm::{LLMBackend, LLMModel};
use tui::text::Text;

use std::sync::Arc;

Expand Down Expand Up @@ -74,6 +75,8 @@ fn main() -> AppResult<()> {
app.llm_messages.push(conv);

app.chat.formatted_chat.extend(app.answer.formatted_answer);
app.chat.formatted_chat.extend(Text::raw("\n"));

app.chat.messages.push(format!("🤖: {}", app.answer.answer));

app.answer = Answer::default();
Expand Down

0 comments on commit 5109979

Please sign in to comment.