[PR #7638] [MERGED] Ai model desc #8013

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

📋 Pull Request Information

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

Base: mainHead: ai_model_desc


📝 Commits (8)

  • d348361 chore: return desc of ai model
  • 7ee29dc chore: return model desc
  • f574b6b chore: update default name
  • b83b964 chore: add model description UI
  • f6f19a0 chore: display ai model desc on setting page
  • ff70595 chore: display ai model desc and fix flashing when select model
  • 8cf31b8 chore: bump client api
  • 7456c65 chore: clippy

📊 Changes

21 files changed (+286 additions, -209 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/service/ai_model_state_notifier.dart (+1 -2)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart (+27 -6)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/ai/settings_ai_bloc.dart (+23 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/model_selection.dart (+9 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/settings_ai_view.dart (+8 -16)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/af_dropdown_menu_entry.dart (+28 -7)
📝 frontend/appflowy_flutter/macos/Podfile.lock (+23 -23)
📝 frontend/rust-lib/Cargo.lock (+20 -20)
📝 frontend/rust-lib/Cargo.toml (+10 -10)
📝 frontend/rust-lib/build-tool/flowy-codegen/src/protobuf_file/mod.rs (+58 -58)
📝 frontend/rust-lib/collab-integrate/src/collab_builder.rs (+1 -1)
📝 frontend/rust-lib/flowy-ai-pub/src/cloud.rs (+25 -3)
📝 frontend/rust-lib/flowy-ai/src/ai_manager.rs (+37 -23)
📝 frontend/rust-lib/flowy-ai/src/entities.rs (+6 -28)
📝 frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs (+1 -1)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/collab_deps.rs (+1 -1)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps/mod.rs (+1 -1)
📝 frontend/rust-lib/flowy-database2/src/manager.rs (+3 -3)
📝 frontend/rust-lib/flowy-server/src/af_cloud/impls/database.rs (+2 -2)

...and 1 more files

📄 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.

Summary by Sourcery

Enhance AI model selection and description functionality across the AppFlowy application, adding support for model descriptions and improving model selection logic

New Features:

  • Add support for AI model descriptions in the UI and backend
  • Implement more robust model selection logic with fallback mechanisms

Enhancements:

  • Improve AI model selection dropdown with optional sub-labels
  • Update AI model state management to handle model descriptions
  • Refactor AI model selection logic to be more flexible

🔄 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/7638 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 3/27/2025 **Status:** ✅ Merged **Merged:** 3/27/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `ai_model_desc` --- ### 📝 Commits (8) - [`d348361`](https://github.com/AppFlowy-IO/AppFlowy/commit/d3483618890aacf2e77d397844841311de19294b) chore: return desc of ai model - [`7ee29dc`](https://github.com/AppFlowy-IO/AppFlowy/commit/7ee29dcbc524cc973421ae0caab7cf96c2387a23) chore: return model desc - [`f574b6b`](https://github.com/AppFlowy-IO/AppFlowy/commit/f574b6b9c297f0494edae52045c340963b6333da) chore: update default name - [`b83b964`](https://github.com/AppFlowy-IO/AppFlowy/commit/b83b9646780dca302d6a36992d6af5980b6befc9) chore: add model description UI - [`f6f19a0`](https://github.com/AppFlowy-IO/AppFlowy/commit/f6f19a0a078cf02b510a1c777ea75c30692f4dd6) chore: display ai model desc on setting page - [`ff70595`](https://github.com/AppFlowy-IO/AppFlowy/commit/ff70595a15f7ef7c17f0c4323d6503070f0bfe37) chore: display ai model desc and fix flashing when select model - [`8cf31b8`](https://github.com/AppFlowy-IO/AppFlowy/commit/8cf31b8afc5557606a74310e70966ef4e45b4ed5) chore: bump client api - [`7456c65`](https://github.com/AppFlowy-IO/AppFlowy/commit/7456c65799d31bb5b7595b9d6bd212075a09419f) chore: clippy ### 📊 Changes **21 files changed** (+286 additions, -209 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/service/ai_model_state_notifier.dart` (+1 -2) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart` (+27 -6) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/ai/settings_ai_bloc.dart` (+23 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/model_selection.dart` (+9 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/settings_ai_view.dart` (+8 -16) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/af_dropdown_menu_entry.dart` (+28 -7) 📝 `frontend/appflowy_flutter/macos/Podfile.lock` (+23 -23) 📝 `frontend/rust-lib/Cargo.lock` (+20 -20) 📝 `frontend/rust-lib/Cargo.toml` (+10 -10) 📝 `frontend/rust-lib/build-tool/flowy-codegen/src/protobuf_file/mod.rs` (+58 -58) 📝 `frontend/rust-lib/collab-integrate/src/collab_builder.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-ai-pub/src/cloud.rs` (+25 -3) 📝 `frontend/rust-lib/flowy-ai/src/ai_manager.rs` (+37 -23) 📝 `frontend/rust-lib/flowy-ai/src/entities.rs` (+6 -28) 📝 `frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/collab_deps.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps/mod.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-database2/src/manager.rs` (+3 -3) 📝 `frontend/rust-lib/flowy-server/src/af_cloud/impls/database.rs` (+2 -2) _...and 1 more files_ </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. ## Summary by Sourcery Enhance AI model selection and description functionality across the AppFlowy application, adding support for model descriptions and improving model selection logic New Features: - Add support for AI model descriptions in the UI and backend - Implement more robust model selection logic with fallback mechanisms Enhancements: - Improve AI model selection dropdown with optional sub-labels - Update AI model state management to handle model descriptions - Refactor AI model selection logic to be more flexible --- <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:12 +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#8013
No description provided.