fix: overwrite template

This commit is contained in:
Joel 2024-03-19 13:58:41 +08:00
parent 6bfd61a887
commit 09516726e9
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ const useConfig = (id: string, payload: LLMNodeType) => {
}, [isChatModel])
useEffect(() => {
const isReady = defaultConfig && Object.keys(defaultConfig).length > 0
if (isReady) {
if (isReady && !inputs.prompt_template) {
const newInputs = produce(inputs, (draft) => {
appendDefaultPromptConfig(draft, defaultConfig)
})