Skip to content

Commit 5c2e446

Browse files
authored
Merge pull request #212 from Guocork/fixed-issue-186
fix issue 186
2 parents e11e657 + 1d5a1a9 commit 5c2e446

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/data/chats/chat.rs

+9
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,15 @@ impl Chat {
230230
name: None,
231231
}
232232
);
233+
} else {
234+
messages.insert(
235+
0 as usize,
236+
Message {
237+
content: "You are a helpful, respectful, and honest assistant.".to_string(),
238+
role: Role::System,
239+
name: None,
240+
}
241+
);
233242
}
234243

235244
let ip = &self.inferences_params;

0 commit comments

Comments
 (0)