import type { AppSettings } from '../types' interface Props { settings: AppSettings onChange: (s: AppSettings) => void } export function SettingsPanel({ settings, onChange }: Props) { const set = (key: keyof AppSettings, value: any) => onChange({ ...settings, [key]: value }) return (
Settings
OpenAI Model
Max Chain Depth
set('maxDepth', Number(e.target.value))} />
Top K Chains
set('topKChains', Number(e.target.value))} />
Confidence Threshold
set('confidenceThreshold', Number(e.target.value))} /> {settings.confidenceThreshold.toFixed(2)}
Theme Filter
set('theme', e.target.value)} />
Set OPENAI_API_KEY env var in Hugging Face Secrets. Without it, heuristic extraction + fallback answers are used.
) }