feat: log user message

This commit is contained in:
2026-05-13 12:39:02 +02:00
parent c976db7063
commit f01bc74059
7 changed files with 327 additions and 11 deletions
+4
View File
@@ -184,6 +184,7 @@ async fn test_chat_completions_ok() {
content: "What is 2+2?".to_string(),
}],
conversation_id: None,
parent_id: None,
};
let res = provider.chat_completions(&req).await.unwrap();
@@ -219,6 +220,7 @@ async fn test_chat_completions_missing_messages() {
},
messages: vec![],
conversation_id: None,
parent_id: None,
};
let err = provider.chat_completions(&req).await.unwrap_err();
@@ -246,6 +248,7 @@ async fn test_chat_completions_no_user_message() {
content: "be helpful".to_string(),
}],
conversation_id: None,
parent_id: None,
};
let err = provider.chat_completions(&req).await.unwrap_err();
@@ -273,6 +276,7 @@ async fn test_chat_completions_model_not_found() {
content: "hi".to_string(),
}],
conversation_id: None,
parent_id: None,
};
let err = provider.chat_completions(&req).await.unwrap_err();