[PR #7575] [MERGED] chore: completion stream v2 #7975

Closed
opened 2026-03-23 23:22:02 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7575
Author: @appflowy
Created: 3/20/2025
Status: Merged
Merged: 3/21/2025
Merged by: @appflowy

Base: mainHead: completion_stream_v2


📝 Commits (10+)

  • 6e4206a chore: completion stream v2
  • f413b9e chore: callback
  • 13a7ea0 chore: merge remote-tracking branch 'upstream/main' into this one
  • 10f1906 chore: implement ui
  • db2270c chore: update local ai commit
  • 6fd250d chore: update client api
  • a5c0ad5 chore: fix test
  • f1b2f51 chore: fix test
  • 1821010 chore: remove actions in explanation when not explain
  • c79d014 chore: revert podfile changes and update error

📊 Changes

13 files changed (+187 additions, -91 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/service/appflowy_ai_service.dart (+25 -15)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart (+67 -14)
📝 frontend/appflowy_flutter/test/bloc_test/ai_writer_test/ai_writer_bloc_test.dart (+11 -7)
📝 frontend/rust-lib/Cargo.lock (+14 -14)
📝 frontend/rust-lib/Cargo.toml (+4 -4)
📝 frontend/rust-lib/event-integration-test/src/chat_event.rs (+1 -0)
📝 frontend/rust-lib/flowy-ai-pub/src/cloud.rs (+6 -6)
📝 frontend/rust-lib/flowy-ai/src/completion.rs (+36 -16)
📝 frontend/rust-lib/flowy-ai/src/entities.rs (+7 -3)
📝 frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs (+11 -9)
📝 frontend/rust-lib/flowy-error/src/code.rs (+1 -1)
📝 frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs (+2 -1)

📄 Description

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7575 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 3/20/2025 **Status:** ✅ Merged **Merged:** 3/21/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `completion_stream_v2` --- ### 📝 Commits (10+) - [`6e4206a`](https://github.com/AppFlowy-IO/AppFlowy/commit/6e4206a8e2a51b37d8cac9a642539b712806bb71) chore: completion stream v2 - [`f413b9e`](https://github.com/AppFlowy-IO/AppFlowy/commit/f413b9e070fc4a81ba8c4f1a96f4dce243af3ff7) chore: callback - [`13a7ea0`](https://github.com/AppFlowy-IO/AppFlowy/commit/13a7ea07a8895a42c484811d152344205aa07397) chore: merge remote-tracking branch 'upstream/main' into this one - [`10f1906`](https://github.com/AppFlowy-IO/AppFlowy/commit/10f19069c6877691fb50a9179de8d61f00d61ffa) chore: implement ui - [`db2270c`](https://github.com/AppFlowy-IO/AppFlowy/commit/db2270c8d813ed550cbb74437b1ae9e2d3d4b2cd) chore: update local ai commit - [`6fd250d`](https://github.com/AppFlowy-IO/AppFlowy/commit/6fd250d4d1e6cc287c87a9b7b279d9560539e984) chore: update client api - [`a5c0ad5`](https://github.com/AppFlowy-IO/AppFlowy/commit/a5c0ad599861bd5ad81f1f87441a8c4cbdc31bde) chore: fix test - [`f1b2f51`](https://github.com/AppFlowy-IO/AppFlowy/commit/f1b2f51a06f2d86bf2dac77e8da9fa65f2200f0e) chore: fix test - [`1821010`](https://github.com/AppFlowy-IO/AppFlowy/commit/182101023be878d97acbad009f80eedc693ed97d) chore: remove actions in explanation when not explain - [`c79d014`](https://github.com/AppFlowy-IO/AppFlowy/commit/c79d014305a5001d34d0ea9592b881faae1ab764) chore: revert podfile changes and update error ### 📊 Changes **13 files changed** (+187 additions, -91 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/service/appflowy_ai_service.dart` (+25 -15) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart` (+67 -14) 📝 `frontend/appflowy_flutter/test/bloc_test/ai_writer_test/ai_writer_bloc_test.dart` (+11 -7) 📝 `frontend/rust-lib/Cargo.lock` (+14 -14) 📝 `frontend/rust-lib/Cargo.toml` (+4 -4) 📝 `frontend/rust-lib/event-integration-test/src/chat_event.rs` (+1 -0) 📝 `frontend/rust-lib/flowy-ai-pub/src/cloud.rs` (+6 -6) 📝 `frontend/rust-lib/flowy-ai/src/completion.rs` (+36 -16) 📝 `frontend/rust-lib/flowy-ai/src/entities.rs` (+7 -3) 📝 `frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs` (+11 -9) 📝 `frontend/rust-lib/flowy-error/src/code.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs` (+2 -1) </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:22:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7975
No description provided.