Skip to content

Commit 04e83cd

Browse files
committed
Add async test for chat completions reasoning in chat_completions.rs
1 parent 6d00547 commit 04e83cd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/client/chat_completions/chat_completions.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,18 @@ mod tests {
8282
assert!(!response.choices.is_empty());
8383
assert!(!response.id.is_empty());
8484
}
85-
85+
#[tokio::test]
86+
#[ignore]
87+
async fn test_chat_completions_reasoning() {
88+
dotenvy::dotenv().ok();
89+
let client = DeepSeekClient::default().unwrap();
90+
let request =
91+
RequestBody::new_messages(vec![Message::new_user_message("Hello".to_string())])
92+
.with_model(Model::DeepSeekReasoner);
93+
let response = client.chat_completions(request).await.unwrap();
94+
assert!(!response.choices.is_empty());
95+
assert!(!response.id.is_empty());
96+
}
8697
#[tokio::test]
8798
#[ignore]
8899
async fn test_chat_completions_with_system_message() {

0 commit comments

Comments
 (0)