diff --git a/ollama-cli/src/tui/messages/mod.rs b/ollama-cli/src/tui/messages/mod.rs index 3e39496..43e8aa4 100644 --- a/ollama-cli/src/tui/messages/mod.rs +++ b/ollama-cli/src/tui/messages/mod.rs @@ -15,7 +15,7 @@ use crate::{ pub mod state; pub mod view; -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Default)] pub struct MessagesViewModel { /// Streaming response from the model before it's finished. model_stream: String, @@ -25,16 +25,6 @@ pub struct MessagesViewModel { state: state::MessagesState, } -impl Default for MessagesViewModel { - fn default() -> Self { - Self { - model_stream: Default::default(), - messages: VecDeque::from([Message::Assistant("".into())]), - state: Default::default(), - } - } -} - #[derive(Clone, Copy, Debug)] pub enum MessagesEvent { Quit,