mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-19 12:24:53 -04:00
chore: bump client api
This commit is contained in:
parent
b3cb6090f2
commit
669c17064b
4 changed files with 17 additions and 14 deletions
24
frontend/rust-lib/Cargo.lock
generated
24
frontend/rust-lib/Cargo.lock
generated
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -102,6 +102,7 @@ where
|
|||
message_id: i64,
|
||||
format: Option<ResponseFormat>,
|
||||
) -> Result<StreamAnswer, FlowyError> {
|
||||
let format = format.unwrap_or_default();
|
||||
trace!(
|
||||
"stream_answer: workspace_id={}, chat_id={}, format={:?}",
|
||||
workspace_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue