|
|
|
|
@ -99,7 +99,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
|
|
|
|
})
|
|
|
|
|
setInputs(newInputs)
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|
}, [defaultConfig, isChatModel])
|
|
|
|
|
|
|
|
|
|
const [modelChanged, setModelChanged] = useState(false)
|
|
|
|
|
@ -159,7 +159,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
|
|
|
|
return
|
|
|
|
|
setModelChanged(false)
|
|
|
|
|
handleVisionConfigAfterModelChanged()
|
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|
}, [isVisionModel, modelChanged])
|
|
|
|
|
|
|
|
|
|
// variables
|
|
|
|
|
@ -278,7 +278,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
|
|
|
|
}, [inputs, setInputs])
|
|
|
|
|
|
|
|
|
|
const filterInputVar = useCallback((varPayload: Var) => {
|
|
|
|
|
return [VarType.number, VarType.string, VarType.secret].includes(varPayload.type)
|
|
|
|
|
return [VarType.number, VarType.string, VarType.secret, VarType.arrayString, VarType.arrayNumber].includes(varPayload.type)
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
const filterVar = useCallback((varPayload: Var) => {
|
|
|
|
|
|