AppFlowy-Cloud/libs/appflowy-ai-client/tests/chat_test/qa_test.rs

13 lines
282 B
Rust

use crate::appflowy_ai_client;
#[tokio::test]
async fn qa_test() {
let client = appflowy_ai_client();
client.health_check().await.unwrap();
let resp = client
.send_question("fake_chat_id", "I feel hungry")
.await
.unwrap();
assert!(!resp.content.is_empty());
}