style(anthropic): format cache conversation test block
This commit is contained in:
parent
455eb3b847
commit
da7c21f469
1 changed files with 4 additions and 6 deletions
|
|
@ -881,12 +881,10 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn should_cache_conversation_long() {
|
fn should_cache_conversation_long() {
|
||||||
let mut messages = vec![
|
let mut messages = vec![ChatMessage {
|
||||||
ChatMessage {
|
role: "system".to_string(),
|
||||||
role: "system".to_string(),
|
content: "System prompt".to_string(),
|
||||||
content: "System prompt".to_string(),
|
}];
|
||||||
},
|
|
||||||
];
|
|
||||||
// Add 5 non-system messages
|
// Add 5 non-system messages
|
||||||
for i in 0..5 {
|
for i in 0..5 {
|
||||||
messages.push(ChatMessage {
|
messages.push(ChatMessage {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue