We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3c32d commit ebb1fffCopy full SHA for ebb1fff
crates/chat-cli/src/cli/chat/conversation_state.rs
@@ -107,7 +107,7 @@ pub struct ConversationState {
107
pub updates: Option<SharedWriter>,
108
/// Model explicitly selected by the user in this conversation state via `/model`. (`None` ==
109
/// auto)
110
- #[serde(skip)]
+ #[serde(default, skip_serializing_if = "Option::is_none")]
111
pub current_model_id: Option<String>,
112
}
113
@@ -162,7 +162,7 @@ impl ConversationState {
162
context_message_length: None,
163
latest_summary: None,
164
updates,
165
- current_model_id: current_model_id,
+ current_model_id,
166
167
168
0 commit comments