mirror of
https://github.com/langgenius/dify.git
synced 2026-03-22 14:57:58 +08:00
fix: basic chat
This commit is contained in:
@ -61,7 +61,9 @@ const ChatItem: FC<ChatItemProps> = ({
|
||||
annotation_reply: features.annotationReply,
|
||||
} as ChatConfig
|
||||
}, [configTemplate, features])
|
||||
const inputsForm = modelConfig.configs.prompt_variables.filter(item => item.type !== 'api').map(item => ({ ...item, label: item.name, variable: item.key })) as InputForm[]
|
||||
const inputsForm = useMemo(() => {
|
||||
return modelConfig.configs.prompt_variables.filter(item => item.type !== 'api').map(item => ({ ...item, label: item.name, variable: item.key })) as InputForm[]
|
||||
}, [modelConfig.configs.prompt_variables])
|
||||
const {
|
||||
chatList,
|
||||
chatListRef,
|
||||
|
||||
@ -63,7 +63,9 @@ const DebugWithSingleModel = forwardRef<DebugWithSingleModelRefType, DebugWithSi
|
||||
annotation_reply: features.annotationReply,
|
||||
} as ChatConfig
|
||||
}, [configTemplate, features])
|
||||
const inputsForm = modelConfig.configs.prompt_variables.filter(item => item.type !== 'api').map(item => ({ ...item, label: item.name, variable: item.key })) as InputForm[]
|
||||
const inputsForm = useMemo(() => {
|
||||
return modelConfig.configs.prompt_variables.filter(item => item.type !== 'api').map(item => ({ ...item, label: item.name, variable: item.key })) as InputForm[]
|
||||
}, [modelConfig.configs.prompt_variables])
|
||||
const {
|
||||
chatList,
|
||||
chatListRef,
|
||||
|
||||
Reference in New Issue
Block a user