Merge remote-tracking branch 'origin/main' into woa-nvidia-wsl-fallback
This commit is contained in:
commit
c34fd4e412
1 changed files with 10 additions and 1 deletions
|
|
@ -546,6 +546,12 @@ export function ChatSettingsPanel({
|
|||
const loadedTensorParallel = useChatRuntimeStore(
|
||||
(s) => s.loadedTensorParallel,
|
||||
);
|
||||
const chatTemplateOverride = useChatRuntimeStore(
|
||||
(s) => s.chatTemplateOverride,
|
||||
);
|
||||
const loadedChatTemplateOverride = useChatRuntimeStore(
|
||||
(s) => s.loadedChatTemplateOverride,
|
||||
);
|
||||
const customContextLength = useChatRuntimeStore((s) => s.customContextLength);
|
||||
const setCustomContextLength = useChatRuntimeStore(
|
||||
(s) => s.setCustomContextLength,
|
||||
|
|
@ -584,8 +590,11 @@ export function ChatSettingsPanel({
|
|||
const specDirty = speculativeType !== loadedSpeculativeType;
|
||||
const specDraftDirty = specDraftNMax !== loadedSpecDraftNMax;
|
||||
const tpDirty = tensorParallel !== (loadedTensorParallel ?? false);
|
||||
// A saved chat-template override is a reload-time setting too, so surface
|
||||
// Apply for a template-only edit (otherwise it could never be applied).
|
||||
const templateDirty = chatTemplateOverride !== loadedChatTemplateOverride;
|
||||
const modelSettingsDirty =
|
||||
kvDirty || ctxDirty || specDirty || specDraftDirty || tpDirty;
|
||||
kvDirty || ctxDirty || specDirty || specDraftDirty || tpDirty || templateDirty;
|
||||
const [presetNameInput, setPresetNameInput] = useState(activePreset);
|
||||
const [systemPromptEditorOpen, setSystemPromptEditorOpen] = useState(false);
|
||||
const [systemPromptDraft, setSystemPromptDraft] = useState("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue