waveterm
waveterm copied to clipboard
[Feature]: Add a toggle to switch between the default AI handler and a custom setup
Feature description
I would like to propose adding a toggle or a clear UI indicator that allows users to easily switch between the default AI handler and a custom configuration. This feature would enhance the user experience, especially for those who may not be familiar with the technical aspects of setting up their own AI integrations.
Implementation Suggestion
-
Configuration Storage:
- Store the user's preference (default or custom) in user settings.
-
Default AI Handler:
- Define a default AI handler that provides a pre-configured AI service or model.
-
Custom AI Handler:
- Allow users to input custom configuration details (e.g., API key, endpoint URL) for their preferred AI service or model.
-
Handler Switching:
- When the toggle switch is changed:
- Default: Load the pre-configured default AI handler.
- Custom: Load the custom AI handler based on the user's input configuration.
- When the toggle switch is changed:
This feature would make it easier for users to manage their AI configurations directly within the AI block, enhancing their confidence in data privacy and control. It aligns with Waveterm’s commitment to user empowerment and transparency.