mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 18:20:31 +08:00
Security: lock down the TutorBot tool sandbox (shell exec is opt-in, all filesystem/shell access confined to the bot workspace) and isolate per-user resources, closing #518, #517, #516, #515, #514 and #506 (first hardened in #507). Bug fixes: chat input disabled after the first turn (#520), KB embedding failure on long documents (#521 / #509), profile creation under Docker (#512 / #513), Qwen reasoning models failing native tool calling (#527 / #528), the GPT-5 init-wizard token parameter (#508), and oversized session-event truncation (#524). Features: HTTP/SSE API for multi-turn chat with a specific TutorBot (#511), multimodal image fallback for vision-capable providers without a capability entry, safe ZIP knowledge upload, and a /settings/network page with model fetching (community PRs #522 and #523 reimplemented locally). Also bumps __version__ to 1.4.1, adds the v1.4.1 release notes, updates the README Releases section, and ships the Astro + Starlight docs site under site/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
111 lines
2.2 KiB
TypeScript
111 lines
2.2 KiB
TypeScript
"use client";
|
|
|
|
import {
|
|
Activity,
|
|
BookMarked,
|
|
Brain,
|
|
Database,
|
|
Network,
|
|
Palette,
|
|
Plug,
|
|
Search,
|
|
SlidersHorizontal,
|
|
Wrench,
|
|
type LucideIcon,
|
|
} from "lucide-react";
|
|
|
|
export type SettingsItemKey =
|
|
| "appearance"
|
|
| "status"
|
|
| "network"
|
|
| "tools"
|
|
| "mcp"
|
|
| "llm"
|
|
| "embedding"
|
|
| "search"
|
|
| "memory"
|
|
| "capabilities";
|
|
|
|
export interface SettingsItem {
|
|
key: SettingsItemKey;
|
|
href: string;
|
|
label: string;
|
|
description: string;
|
|
icon: LucideIcon;
|
|
}
|
|
|
|
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: "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 (coming soon).",
|
|
icon: Plug,
|
|
},
|
|
{
|
|
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";
|