merge main

This commit is contained in:
zxhlyh
2025-06-11 10:41:50 +08:00
42 changed files with 2524 additions and 2429 deletions

View File

@ -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) => {

View File

@ -209,7 +209,7 @@ export type InputVar = {
value_selector?: ValueSelector
placeholder?: string
unit?: string
hide: boolean
hide?: boolean
} & Partial<UploadFileSetting>
export type ModelConfig = {