logancyang / obsidian-copilot

THE Copilot in Obsidian
https://www.obsidiancopilot.com/
GNU Affero General Public License v3.0
3k stars 209 forks source link

Per-Model Folder Settings for Obsidian Copilot #658

Open logicsec opened 1 month ago

logicsec commented 1 month ago

Feature Request: Per-Model Folder Settings for Obsidian Copilot

Description:

Currently, Obsidian Copilot uses a single global folder for storing model-specific data, such as API keys and configuration settings. This can be limiting for users who want to manage different models with separate configurations.

This feature request proposes adding the ability to specify a per-model folder, allowing users to organize and manage their models more effectively.

Proposed Implementation:

  1. General Settings Toggle: Introduce a new toggle switch in the Obsidian Copilot general settings, labeled "Enable Per-Model Folders".

  2. Model Settings Input: When the toggle is enabled, each model settings page (where API keys are entered) will display a new input field for specifying a folder path.

  3. Folder Path Resolution: When a user changes the model in the chat window, Obsidian Copilot will:

    • Check if a folder path is specified for the selected model.
    • If a folder path is found, use it to load model-specific data.
    • If no folder path is specified, default to the global folder path.

Benefits:

Example Use Case:

A user might have two different models: one for generating code and another for writing creative content. By enabling per-model folders, they can store the API keys and configuration settings for each model separately, ensuring that they don't interfere with each other.

Conclusion:

Implementing per-model folder settings would significantly enhance the flexibility and organization of Obsidian Copilot, providing users with greater control over their models and their associated data. This feature would be a valuable addition to the plugin, improving the overall user experience.

logancyang commented 1 month ago

I believe this is close to what I have in mind as "Profile". Profile is use case specific and it will have "model, params, system prompt" presets.

logancyang commented 1 month ago

Related #459