0.3.3 外网下载修复

This commit is contained in:
liaibo
2026-01-21 18:21:10 +08:00
parent f13de35321
commit 71de56850b
45 changed files with 2499 additions and 476 deletions
@@ -5,6 +5,7 @@ import { Bot, Settings, Wrench, X } from "lucide-react";
import { Button } from "@/components/ui/button";
import { ScrollArea } from "@/components/ui/scroll-area";
import { Textarea } from "@/components/ui/textarea";
import { clamp } from "@/lib/constants";
type AgentMessage = { role: "user" | "assistant"; content: string };
@@ -35,8 +36,6 @@ const ONLINE_MODELS = [
"gemini-3-flash-preview",
] as const;
const clamp = (n: number, min: number, max: number) => Math.max(min, Math.min(max, n));
const isRecord = (v: unknown): v is Record<string, unknown> =>
typeof v === "object" && v !== null && !Array.isArray(v);