Files
DeepTutor/web/lib/settings-items.ts
Bingxi Zhao (Frank) 46093e5e2b update msg
2026-06-11 20:03:34 +08:00

123 lines
2.5 KiB
TypeScript

"use client";
import {
Activity,
BookMarked,
Brain,
Database,
FileScan,
Network,
Palette,
Plug,
Search,
SlidersHorizontal,
Wrench,
type LucideIcon,
} from "lucide-react";
export type SettingsItemKey =
| "appearance"
| "status"
| "network"
| "tools"
| "mcp"
| "llm"
| "embedding"
| "search"
| "mineru"
| "memory"
| "capabilities";
export interface SettingsItem {
key: SettingsItemKey;
href: string;
label: string;
description: string;
icon: LucideIcon;
/** Hidden from non-admin users (the backend rejects them anyway). */
adminOnly?: boolean;
}
export const SETTINGS_ITEMS: SettingsItem[] = [
{
key: "appearance",
href: "/settings/appearance",
label: "Appearance",
description: "Theme and language preferences.",
icon: Palette,
},
{
key: "status",
href: "/settings/status",
label: "Status",
description: "Runtime status for backend and configured services.",
icon: Activity,
},
{
key: "network",
href: "/settings/network",
label: "Network",
description: "Ports, browser API base, and CORS origins.",
icon: Network,
},
{
key: "llm",
href: "/settings/llm",
label: "LLM",
description: "Language model providers and active profile.",
icon: Brain,
},
{
key: "embedding",
href: "/settings/embedding",
label: "Embedding",
description: "Embedding model providers and dimensions.",
icon: Database,
},
{
key: "search",
href: "/settings/search",
label: "Search",
description: "Web search providers.",
icon: Search,
},
{
key: "mineru",
href: "/settings/mineru",
label: "MinerU PDF",
description: "PDF parsing backend (local or cloud API).",
icon: FileScan,
},
{
key: "capabilities",
href: "/settings/capabilities",
label: "Capabilities",
description: "Per-capability LLM parameters and runtime knobs.",
icon: SlidersHorizontal,
},
{
key: "memory",
href: "/settings/memory",
label: "Memory",
description: "Chunking, LLM-budget, dedup, and reference policies.",
icon: BookMarked,
},
{
key: "mcp",
href: "/settings/mcp",
label: "MCP servers",
description: "External MCP servers shared by the deployment.",
icon: Plug,
adminOnly: true,
},
{
key: "tools",
href: "/settings/tools",
label: "Tools",
description: "Built-in tools the chat agent can invoke.",
icon: Wrench,
},
];
export const SETTINGS_DEFAULT_HREF = "/settings/appearance";