Sfoglia il codice sorgente

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

tags/1.8.0
17hz 2 mesi fa
parent
commit
8af2ae973f
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      web/app/components/workflow/nodes/llm/use-config.ts

+ 1
- 1
web/app/components/workflow/nodes/llm/use-config.ts Vedi File

@@ -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…
Annulla
Salva