model temperature settings
This commit is contained in:
@@ -241,6 +241,7 @@ function ServiceHealth() {
|
||||
function ModelsSection({ onNavigate }) {
|
||||
const { models, selectedModel, setSelectedModel } = useModels();
|
||||
const [selectedInfo, setSelectedInfo] = useState(null);
|
||||
const {settings, saveSetting, saving} = useSettings();
|
||||
|
||||
// Sync info panel when selection changes
|
||||
useEffect(() => {
|
||||
@@ -255,6 +256,19 @@ function ModelsSection({ onNavigate }) {
|
||||
description="Path to folder containing .gguf files"
|
||||
action={<ModelsFolderSetting />}
|
||||
/>
|
||||
<SettingsRow
|
||||
label="Temperature"
|
||||
description="Response randomness — lower is more focused, higher is more creative (0–2)"
|
||||
action={
|
||||
<NumberSetting
|
||||
label=""
|
||||
value={settings?.temperature}
|
||||
min={0} max={2} step={0.05}
|
||||
onSave={val => saveSetting('temperature', val)}
|
||||
saving={saving}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<SettingsRow
|
||||
label="Active Model"
|
||||
description="Model used for inference"
|
||||
|
||||
Reference in New Issue
Block a user