feat: log user message
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user