"use client"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { Slider } from "@/components/ui/slider"; import { Switch } from "@/components/ui/switch"; import type { PlaygroundSettings } from "./types"; import { type } from "@/lib/typography"; import { cn } from "@/lib/utils"; interface PlaygroundSettingsPanelProps { settings: PlaygroundSettings; onChange: (settings: PlaygroundSettings) => void; idPrefix?: string; } export function PlaygroundSettingsPanel({ settings, onChange, idPrefix = "playground", }: PlaygroundSettingsPanelProps) { return (
{settings.temperature.toFixed(1)}
onChange({ ...settings, temperature: temperature ?? 0.7 }) } className="w-full" />

نگه‌داری زمینه مکالمه در تعاملات بعدی

onChange({ ...settings, memoryEnabled }) } />

این تنظیمات فعلاً برای آزمایش رابط کاربری فعال هستند و پس از اتصال به سرویس واقعی، مستقیماً روی پاسخ‌ها اعمال می‌شوند.

); }