feat(settings): add model provider management with full CRUD support
Add a new settings page for managing API model providers (name, API URL, API key, applicable agent types). Includes database migration, SeaORM entity, backend CRUD commands/handlers, frontend settings UI with agent type filter, add/edit/delete dialogs, and i18n support for all 10 locales. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,8 @@ mod tauri_app {
|
||||
use crate::chat_channel::manager::ChatChannelManager;
|
||||
use crate::commands::{
|
||||
acp as acp_commands, chat_channel as chat_channel_commands, conversations, folder_commands,
|
||||
folders, mcp as mcp_commands, notification, project_boot, system_settings,
|
||||
folders, mcp as mcp_commands, model_provider as model_provider_commands, notification,
|
||||
project_boot, system_settings,
|
||||
terminal as terminal_commands, version_control, windows,
|
||||
};
|
||||
use crate::terminal::manager::TerminalManager;
|
||||
@@ -391,6 +392,10 @@ mod tauri_app {
|
||||
chat_channel_commands::set_chat_message_language,
|
||||
chat_channel_commands::weixin_get_qrcode,
|
||||
chat_channel_commands::weixin_check_qrcode,
|
||||
model_provider_commands::list_model_providers,
|
||||
model_provider_commands::create_model_provider,
|
||||
model_provider_commands::update_model_provider,
|
||||
model_provider_commands::delete_model_provider,
|
||||
web::start_web_server,
|
||||
web::stop_web_server,
|
||||
web::get_web_server_status,
|
||||
|
||||
Reference in New Issue
Block a user