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:
@@ -15,6 +15,7 @@ import {
|
||||
BotMessageSquare,
|
||||
Palette,
|
||||
PlugZap,
|
||||
Server,
|
||||
Settings,
|
||||
} from "lucide-react"
|
||||
import { useTranslations } from "next-intl"
|
||||
@@ -31,6 +32,7 @@ interface SettingsNavItem {
|
||||
labelKey:
|
||||
| "appearance"
|
||||
| "agents"
|
||||
| "model_providers"
|
||||
| "mcp"
|
||||
| "skills"
|
||||
| "shortcuts"
|
||||
@@ -52,6 +54,11 @@ const SETTINGS_NAV_ITEMS: SettingsNavItem[] = [
|
||||
labelKey: "agents",
|
||||
icon: Bot,
|
||||
},
|
||||
{
|
||||
href: "/settings/model-providers",
|
||||
labelKey: "model_providers",
|
||||
icon: Server,
|
||||
},
|
||||
{
|
||||
href: "/settings/mcp",
|
||||
labelKey: "mcp",
|
||||
|
||||
Reference in New Issue
Block a user