fix: llm crash
This commit is contained in:
parent
cd34960e55
commit
31b9b8ecc3
@ -1,5 +1,5 @@
|
|||||||
import type { FC } from 'react'
|
import type { FC } from 'react'
|
||||||
import React from 'react'
|
import React, { useCallback } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import MemoryConfig from '../_base/components/memory-config'
|
import MemoryConfig from '../_base/components/memory-config'
|
||||||
import VarReferencePicker from '../_base/components/variable/var-reference-picker'
|
import VarReferencePicker from '../_base/components/variable/var-reference-picker'
|
||||||
@ -131,7 +131,7 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
|
|||||||
}) => {
|
}) => {
|
||||||
handleCompletionParamsChange({})
|
handleCompletionParamsChange({})
|
||||||
handleModelChanged(model)
|
handleModelChanged(model)
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user