mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-12 11:36:04 +00:00

* feat: ai settings page * chore: intergate client api * chore: replace open ai calls * chore: disable gen image from ai * chore: clippy * chore: remove learn about ai * chore: fix wanrings * chore: fix restart button title * chore: remove await * chore: remove loading indicator --------- Co-authored-by: nathan <nathan@appflowy.io> Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
22 lines
574 B
Rust
22 lines
574 B
Rust
|
|
use event_integration_test::user_event::user_localhost_af_cloud;
|
|
use event_integration_test::EventIntegrationTest;
|
|
use flowy_chat::entities::{CompletionTypePB};
|
|
|
|
|
|
use std::time::Duration;
|
|
|
|
#[tokio::test]
|
|
async fn af_cloud_complete_text_test() {
|
|
user_localhost_af_cloud().await;
|
|
let test = EventIntegrationTest::new().await;
|
|
test.af_cloud_sign_up().await;
|
|
|
|
let _workspace_id = test.get_current_workspace().await.id;
|
|
let _task = test
|
|
.complete_text("hello world", CompletionTypePB::MakeLonger)
|
|
.await;
|
|
|
|
tokio::time::sleep(Duration::from_secs(6)).await;
|
|
}
|