瀏覽代碼

feat: Auto-associate variables in Jinja editor mode (#24561)

tags/1.8.0
17hz 2 月之前
父節點
當前提交
8af2ae973f
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/workflow/nodes/llm/use-config.ts

+ 1
- 1
web/app/components/workflow/nodes/llm/use-config.ts 查看文件

@@ -246,7 +246,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
}, [inputs, setInputs])

const handlePromptChange = useCallback((newPrompt: PromptItem[] | PromptItem) => {
const newInputs = produce(inputs, (draft) => {
const newInputs = produce(inputRef.current, (draft) => {
draft.prompt_template = newPrompt
})
setInputs(newInputs)

Loading…
取消
儲存