fix: overwrite template

This commit is contained in:
Joel
2024-03-19 13:58:41 +08:00
parent 6bfd61a887
commit 09516726e9

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)
})