Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(web): optimize prompt change logic for LLM nodes (#20841) (#20865)
HyaCinthfc6e2d14a5b3
diff --git a/web/app/components/workflow/nodes/llm/use-config.ts b/web/app/components/workflow/nodes/llm/use-config.tsindex 13db9e40315..cd2c552257c 100644--- a/web/app/components/workflow/nodes/llm/use-config.ts+++ b/web/app/components/workflow/nodes/llm/use-config.ts@@ -247,11 +247,11 @@ const useConfig = (id: string, payload: LLMNodeType) => {}, [inputs, setInputs])const handlePromptChange = useCallback((newPrompt: PromptItem[] | PromptItem) => {- const newInputs = produce(inputRef.current, (draft) => {+ const newInputs = produce(inputs, (draft) => {draft.prompt_template = newPrompt})setInputs(newInputs)- }, [setInputs])+ }, [inputs, setInputs])const handleMemoryChange = useCallback((newMemory?: Memory) => {const newInputs = produce(inputs, (draft) => {diff --git a/web/app/components/workflow/types.ts b/web/app/components/workflow/types.tsindex 5218c230842..2a0a10629bc 100644--- a/web/app/components/workflow/types.ts+++ b/web/app/components/workflow/types.ts@@ -198,7 +198,7 @@ export type InputVar = {hint?: stringoptions?: string[]value_selector?: ValueSelector- hide: boolean+ hide?: boolean} & Partial<UploadFileSetting>export type ModelConfig = {