diff --git a/frontend/rust-lib/Cargo.lock b/frontend/rust-lib/Cargo.lock index 88d0e9d6f8..39bce7057e 100644 --- a/frontend/rust-lib/Cargo.lock +++ b/frontend/rust-lib/Cargo.lock @@ -163,7 +163,7 @@ checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" [[package]] name = "app-error" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "bincode", @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "appflowy-ai-client" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "bytes", @@ -786,7 +786,7 @@ dependencies = [ [[package]] name = "client-api" version = "0.2.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "again", "anyhow", @@ -843,7 +843,7 @@ dependencies = [ [[package]] name = "client-api-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "collab-entity", "collab-rt-entity", @@ -856,7 +856,7 @@ dependencies = [ [[package]] name = "client-websocket" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "futures-channel", "futures-util", @@ -1128,7 +1128,7 @@ dependencies = [ [[package]] name = "collab-rt-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "bincode", @@ -1153,7 +1153,7 @@ dependencies = [ [[package]] name = "collab-rt-protocol" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "async-trait", @@ -1548,7 +1548,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" [[package]] name = "database-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "app-error", @@ -2970,7 +2970,7 @@ dependencies = [ [[package]] name = "gotrue" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "futures-util", @@ -2987,7 +2987,7 @@ dependencies = [ [[package]] name = "gotrue-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "app-error", @@ -3598,7 +3598,7 @@ dependencies = [ [[package]] name = "infra" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "bytes", @@ -6140,7 +6140,7 @@ dependencies = [ [[package]] name = "shared-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a#4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=0441c3d772a3c41116a94e48678f5bb33f3c0db5#0441c3d772a3c41116a94e48678f5bb33f3c0db5" dependencies = [ "anyhow", "app-error", diff --git a/frontend/rust-lib/Cargo.toml b/frontend/rust-lib/Cargo.toml index 312088862e..78f4fbcb65 100644 --- a/frontend/rust-lib/Cargo.toml +++ b/frontend/rust-lib/Cargo.toml @@ -103,8 +103,8 @@ dashmap = "6.0.1" # Run the script.add_workspace_members: # scripts/tool/update_client_api_rev.sh new_rev_id # ⚠️⚠️⚠️️ -client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" } -client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "4ed5b367eac5ae9ffd603812e2fea26b3ed3da7a" } +client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "0441c3d772a3c41116a94e48678f5bb33f3c0db5" } +client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "0441c3d772a3c41116a94e48678f5bb33f3c0db5" } [profile.dev] opt-level = 0 diff --git a/frontend/rust-lib/flowy-ai/src/completion.rs b/frontend/rust-lib/flowy-ai/src/completion.rs index fd799b411f..7ce7f79a2e 100644 --- a/frontend/rust-lib/flowy-ai/src/completion.rs +++ b/frontend/rust-lib/flowy-ai/src/completion.rs @@ -104,8 +104,10 @@ impl CompletionTask { custom_prompt: None, metadata: Some(CompletionMetadata { object_id: self.context.object_id, + workspace_id: None, rag_ids: Some(self.context.rag_ids), }), + format: Default::default(), }; info!("start completion: {:?}", params); diff --git a/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs b/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs index 95fbeb01cf..7fb05f7647 100644 --- a/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs +++ b/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs @@ -102,6 +102,7 @@ where message_id: i64, format: Option, ) -> Result { + let format = format.unwrap_or_default(); trace!( "stream_answer: workspace_id={}, chat_id={}, format={:?}", workspace_id,