From 3b30e2e8b90360e4dc2ff36143a918e93f78fae7 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 14 Jan 2026 14:43:10 -0600 Subject: [PATCH] fix reasoning level --- .../agent-components/llm-configs/chat-config.svelte | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/routes/page/agent/[agentId]/agent-components/llm-configs/chat-config.svelte b/src/routes/page/agent/[agentId]/agent-components/llm-configs/chat-config.svelte index 007236d9..d6018960 100644 --- a/src/routes/page/agent/[agentId]/agent-components/llm-configs/chat-config.svelte +++ b/src/routes/page/agent/[agentId]/agent-components/llm-configs/chat-config.svelte @@ -87,6 +87,7 @@ config.is_inherit = false; models = getLlmModels(provider); config.model = models[0]?.name; + config.reasoning_effort_level = null; onModelChanged(config); handleAgentChange(); } @@ -96,6 +97,7 @@ config.is_inherit = false; config.model = e.target.value || null; onModelChanged(config); + config.reasoning_effort_level = null; handleAgentChange(); } @@ -135,11 +137,6 @@ /** @param {import('$agentTypes').AgentLlmConfig | null} config */ function onModelChanged(config) { reasoningLevelOptions = getReasoningLevelOptions(config?.model); - - if (config && !reasoningLevelOptions.some(x => x.value === config.reasoning_effort_level)) { - const defaultOption = reasoningLevelOptions.find(x => !!x.value)?.value || null; - config.reasoning_effort_level = defaultOption; - } } /** @param {string | null | undefined} model */