diff --git a/web/app/components/workflow/nodes/llm/default.ts b/web/app/components/workflow/nodes/llm/default.ts index 327ce8ad85..26ecd88af8 100644 --- a/web/app/components/workflow/nodes/llm/default.ts +++ b/web/app/components/workflow/nodes/llm/default.ts @@ -42,7 +42,7 @@ const nodeDefault: NodeDefault = { temperature: 0.7, }, }, - computer_use: false, + computer_use: true, prompt_template: [{ role: PromptRole.system, text: '', diff --git a/web/app/components/workflow/nodes/llm/use-config.ts b/web/app/components/workflow/nodes/llm/use-config.ts index 3371ef9804..3a68ae4ee2 100644 --- a/web/app/components/workflow/nodes/llm/use-config.ts +++ b/web/app/components/workflow/nodes/llm/use-config.ts @@ -67,6 +67,11 @@ const useConfig = (id: string, payload: LLMNodeType) => { }) } } + else { + newPayload = produce(newPayload, (draft) => { + draft.computer_use = false + }) + } doSetInputs(newPayload) inputRef.current = newPayload }, [doSetInputs, defaultRolePrefix, isSupportSandbox])