mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #5575] [MERGED] feat: support switch model #6896
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#6896
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5575
Author: @Xazin
Created: 6/19/2024
Status: ✅ Merged
Merged: 6/24/2024
Merged by: @appflowy
Base:
main← Head:feat/ai-settings-page📝 Commits (10+)
368264bfeat: ai settings pagef096ca5chore: intergate client api1e3e589chore: intergate client apiff97208Merge branch 'main' into feat/ai-settings-page5d7f5b8chore: replace open ai calls2a82837chore: disable gen image from ai6236fedchore: clippy59c198dchore: remove learn about ai53299cbchore: fix wanrings84ed4d0chore: fix restart button title📊 Changes
78 files changed (+1383 additions, -499 deletions)
View changed files
📝
frontend/appflowy_flutter/integration_test/cloud/document_sync_test.dart(+0 -1)📝
frontend/appflowy_flutter/integration_test/desktop/uncategorized/open_ai_smart_menu_test.dart(+3 -3)📝
frontend/appflowy_flutter/integration_test/shared/mock/mock_openai_repository.dart(+1 -1)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_placeholder.dart(+1 -1)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/open_ai_image_widget.dart(+3 -3)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_menu.dart(+20 -21)➕
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/service/ai_client.dart(+32 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/service/error.dart(+5 -5)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/service/openai_client.dart(+20 -131)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/auto_completion_node_widget.dart(+25 -61)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/loading.dart(+2 -2)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart(+37 -66)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_toolbar_item.dart(+9 -7)📝
frontend/appflowy_flutter/lib/startup/deps_resolver.dart(+4 -6)➕
frontend/appflowy_flutter/lib/user/application/ai_service.dart(+122 -0)📝
frontend/appflowy_flutter/lib/user/application/user_listener.dart(+22 -16)📝
frontend/appflowy_flutter/lib/workspace/application/home/home_bloc.dart(+2 -2)📝
frontend/appflowy_flutter/lib/workspace/application/home/home_setting_bloc.dart(+2 -2)📝
frontend/appflowy_flutter/lib/workspace/application/menu/menu_user_bloc.dart(+2 -2)➕
frontend/appflowy_flutter/lib/workspace/application/settings/ai/settings_ai_bloc.dart(+127 -0)...and 58 more files
📄 Description
Here's a clearer version of your message:
Support switching to other models. The local AI model will be completed in another PR.

Replace editor OpenAI calls with AppFlowy AI. For example, support improving writing with Claude-3-Sonnet or OpenAI.
Support enabling AI search (to be used in a future version).
Disable generating images from text. This issue will be fixed in another PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.