[PR #3302] [MERGED] feat: integrated openAI rust plugin #5670

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3302
Author: @yatendra2001
Created: 8/31/2023
Status: Merged
Merged: 9/19/2023
Merged by: @appflowy

Base: mainHead: main


📝 Commits (10+)

  • a99f0f9 feat: create flowy-plugins
  • c06f977 feat: integrated openai service with interface
  • f4a796a feat: integrated openai api call
  • 2212777 fix: response in api
  • 11fd088 fix: removed unused imports
  • cc86753 Merge branch 'main' into main
  • 63e582d Merge branch 'AppFlowy-IO:main' into main
  • f8a06ae fix: remove parse.rs
  • 485ade1 merged main
  • 884ef70 fix: macos version + removed print

📊 Changes

14 files changed (+270 additions, -3 deletions)

View changed files

📝 frontend/appflowy_flutter/packages/flowy_infra_ui/android/.project (+2 -2)
📝 frontend/appflowy_flutter/packages/flowy_infra_ui/android/.settings/org.eclipse.buildship.core.prefs (+11 -0)
📝 frontend/appflowy_flutter/packages/flowy_infra_ui/example/android/app/.settings/org.eclipse.buildship.core.prefs (+12 -1)
📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+18 -0)
📝 frontend/rust-lib/Cargo.lock (+18 -0)
📝 frontend/rust-lib/Cargo.toml (+2 -0)
frontend/rust-lib/flowy-ai/Cargo.toml (+20 -0)
frontend/rust-lib/flowy-ai/src/entities.rs (+71 -0)
frontend/rust-lib/flowy-ai/src/event_handler.rs (+71 -0)
frontend/rust-lib/flowy-ai/src/event_map.rs (+18 -0)
frontend/rust-lib/flowy-ai/src/lib.rs (+4 -0)
frontend/rust-lib/flowy-ai/src/notification.rs (+21 -0)
📝 frontend/rust-lib/flowy-core/Cargo.toml (+1 -0)
📝 frontend/rust-lib/flowy-user/src/migrations/sync_new_user.rs (+1 -0)

📄 Description

Feature Preview

  1. Created flowy-plugins rust lib.
  2. Integrated plugin to interface.
  3. Added API call to openai gpt-3.5-turbo

How to test?

  1. Enter your open-ai API key in settings.
  2. Then tap on sidebar username.
Demo answer for a prompt
Screenshot 2023-08-31 at 7 01 04 AM

Related to #2782


PR Checklist

  • My code adheres to the AppFlowy Style Guide
  • 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/3302 **Author:** [@yatendra2001](https://github.com/yatendra2001) **Created:** 8/31/2023 **Status:** ✅ Merged **Merged:** 9/19/2023 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`a99f0f9`](https://github.com/AppFlowy-IO/AppFlowy/commit/a99f0f919c0a6517089004a07b429e83500057d4) feat: create flowy-plugins - [`c06f977`](https://github.com/AppFlowy-IO/AppFlowy/commit/c06f97746d5bf7ea78924f751493a437cf6ead8e) feat: integrated openai service with interface - [`f4a796a`](https://github.com/AppFlowy-IO/AppFlowy/commit/f4a796a08d3b5b4723b606e04e1b68147d7cdee8) feat: integrated openai api call - [`2212777`](https://github.com/AppFlowy-IO/AppFlowy/commit/2212777a7ce77dcfdbb28013ed84e82770c53e63) fix: response in api - [`11fd088`](https://github.com/AppFlowy-IO/AppFlowy/commit/11fd088196a7e824f902ae7d078615e365d87942) fix: removed unused imports - [`cc86753`](https://github.com/AppFlowy-IO/AppFlowy/commit/cc86753c91b983bad02dab3bc6739dc01d99065d) Merge branch 'main' into main - [`63e582d`](https://github.com/AppFlowy-IO/AppFlowy/commit/63e582d253bbe4912b6eb26d6c3450e24315910a) Merge branch 'AppFlowy-IO:main' into main - [`f8a06ae`](https://github.com/AppFlowy-IO/AppFlowy/commit/f8a06ae2af91604744e1b751b148c20f16306cc1) fix: remove parse.rs - [`485ade1`](https://github.com/AppFlowy-IO/AppFlowy/commit/485ade13884a01d5d2cfd040fa2ea658ec9fa690) merged main - [`884ef70`](https://github.com/AppFlowy-IO/AppFlowy/commit/884ef70c6aaf40e63dd92bcabeb1a341cbe3122a) fix: macos version + removed print ### 📊 Changes **14 files changed** (+270 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/android/.project` (+2 -2) 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/android/.settings/org.eclipse.buildship.core.prefs` (+11 -0) 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/example/android/app/.settings/org.eclipse.buildship.core.prefs` (+12 -1) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+18 -0) 📝 `frontend/rust-lib/Cargo.lock` (+18 -0) 📝 `frontend/rust-lib/Cargo.toml` (+2 -0) ➕ `frontend/rust-lib/flowy-ai/Cargo.toml` (+20 -0) ➕ `frontend/rust-lib/flowy-ai/src/entities.rs` (+71 -0) ➕ `frontend/rust-lib/flowy-ai/src/event_handler.rs` (+71 -0) ➕ `frontend/rust-lib/flowy-ai/src/event_map.rs` (+18 -0) ➕ `frontend/rust-lib/flowy-ai/src/lib.rs` (+4 -0) ➕ `frontend/rust-lib/flowy-ai/src/notification.rs` (+21 -0) 📝 `frontend/rust-lib/flowy-core/Cargo.toml` (+1 -0) 📝 `frontend/rust-lib/flowy-user/src/migrations/sync_new_user.rs` (+1 -0) </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 1. Created flowy-plugins rust lib. 2. Integrated plugin to interface. 3. Added API call to openai gpt-3.5-turbo **How to test?** 1. Enter your open-ai API key in settings. 2. Then tap on sidebar username. |Demo answer for a prompt| |---| | <img width="1440" alt="Screenshot 2023-08-31 at 7 01 04 AM" src="https://github.com/AppFlowy-IO/AppFlowy/assets/62821607/0154809a-f378-4bff-82fe-ef5582b6df5f"> | <!--- 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 --> Related to #2782 --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to the [AppFlowy Style Guide](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/submitting-code/style-guides) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] 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 22:19:47 +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#5670
No description provided.