[PR #1676] [MERGED] feat: integrate OpenAI service #4888

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1676
Author: @LucasXu0
Created: 1/7/2023
Status: Merged
Merged: 1/10/2023
Merged by: @LucasXu0

Base: mainHead: text_robot


📝 Commits (6)

  • 34d4ea3 feat: text robot
  • 494e319 feat: add openAI plugin
  • fc1efeb feat: support prompt and suffix
  • 310236d feat: add sample for open AI editing
  • fa0a334 feat: refactor the gpt3 api and support multi line completion
  • ab108e1 chore: format dart code

📊 Changes

21 files changed (+724 additions, -50 deletions)

View changed files

📝 frontend/app_flowy/packages/appflowy_editor/CHANGELOG.md (+9 -0)
📝 frontend/app_flowy/packages/appflowy_editor/example/lib/home_page.dart (+35 -1)
📝 frontend/app_flowy/packages/appflowy_editor/example/lib/pages/simple_editor.dart (+12 -0)
frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/auto_completion.dart (+61 -0)
frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/continue_to_write.dart (+110 -0)
frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/gpt3.dart (+119 -0)
frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/smart_edit.dart (+200 -0)
frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/text_robot.dart (+51 -0)
📝 frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml (+1 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dart (+2 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/commands/text/text_commands.dart (+63 -33)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/core/transform/transaction.dart (+18 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/editor_state.dart (+25 -7)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/checkbox_text.dart (+0 -1)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_widget.dart (+1 -1)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/render/toolbar/toolbar_item.dart (+0 -1)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/editor_service.dart (+5 -0)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/space_on_web_handler.dart (+0 -1)
📝 frontend/app_flowy/packages/appflowy_editor/lib/src/service/toolbar_service.dart (+11 -3)
📝 frontend/app_flowy/packages/appflowy_editor/pubspec.yaml (+1 -1)

...and 1 more files

📄 Description

No description provided


🔄 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/1676 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 1/7/2023 **Status:** ✅ Merged **Merged:** 1/10/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `text_robot` --- ### 📝 Commits (6) - [`34d4ea3`](https://github.com/AppFlowy-IO/AppFlowy/commit/34d4ea3e54c62674ea781d8bf44cd4393c2418ab) feat: text robot - [`494e319`](https://github.com/AppFlowy-IO/AppFlowy/commit/494e31993b6165d2c7a4225faeef4f4d4fb2aeb3) feat: add openAI plugin - [`fc1efeb`](https://github.com/AppFlowy-IO/AppFlowy/commit/fc1efeb70bde084b4c699043065b7e7042c90763) feat: support prompt and suffix - [`310236d`](https://github.com/AppFlowy-IO/AppFlowy/commit/310236dca089d0b086f79076dd00e6db36f32ced) feat: add sample for open AI editing - [`fa0a334`](https://github.com/AppFlowy-IO/AppFlowy/commit/fa0a334d6c8c055efbb6e377e31be4af3d9fa487) feat: refactor the gpt3 api and support multi line completion - [`ab108e1`](https://github.com/AppFlowy-IO/AppFlowy/commit/ab108e1dc199d79b5da4f788946c3af9c5476c24) chore: format dart code ### 📊 Changes **21 files changed** (+724 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/packages/appflowy_editor/CHANGELOG.md` (+9 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/example/lib/home_page.dart` (+35 -1) 📝 `frontend/app_flowy/packages/appflowy_editor/example/lib/pages/simple_editor.dart` (+12 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/auto_completion.dart` (+61 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/continue_to_write.dart` (+110 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/gpt3.dart` (+119 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/smart_edit.dart` (+200 -0) ➕ `frontend/app_flowy/packages/appflowy_editor/example/lib/plugin/AI/text_robot.dart` (+51 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml` (+1 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/appflowy_editor.dart` (+2 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/commands/text/text_commands.dart` (+63 -33) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/core/transform/transaction.dart` (+18 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/editor_state.dart` (+25 -7) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/checkbox_text.dart` (+0 -1) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_widget.dart` (+1 -1) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/render/toolbar/toolbar_item.dart` (+0 -1) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/editor_service.dart` (+5 -0) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/space_on_web_handler.dart` (+0 -1) 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/service/toolbar_service.dart` (+11 -3) 📝 `frontend/app_flowy/packages/appflowy_editor/pubspec.yaml` (+1 -1) _...and 1 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:16:16 +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#4888
No description provided.