Skip to content

chore: implement local ai config#7628

Merged
appflowy merged 2 commits into
mainfrom
local_ai_global_config
Mar 26, 2025
Merged

chore: implement local ai config#7628
appflowy merged 2 commits into
mainfrom
local_ai_global_config

Conversation

@appflowy
Copy link
Copy Markdown
Contributor

@appflowy appflowy commented Mar 26, 2025

Model Selection Process

  1. Collect Available Models:

    • Retrieve server models (marked as non-local).
    • Add the local AI model if it’s enabled.
  2. Determine the Active Model:

    • Get the global active model from workspace settings.
    • Retrieve the user-selected model from stored preferences using a key derived from the source.
      • If no preference is found and a local model is available, choose the local model.
      • Otherwise, use the stored user preference.
    • If the chosen model isn’t in the available list, fall back to the global active model.

@appflowy appflowy merged commit ba1767e into main Mar 26, 2025
@appflowy appflowy deleted the local_ai_global_config branch March 26, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant