浏览代码

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

tags/1.8.0
17hz 2 个月前
父节点
当前提交
8af2ae973f
没有帐户链接到提交者的电子邮件
共有 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)

正在加载...
取消
保存