mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 01:45:52 +08:00
fix: basic chat
This commit is contained in:
parent
dba24766e8
commit
7abe76f07e
@ -61,7 +61,9 @@ const ChatItem: FC<ChatItemProps> = ({
|
|||||||
annotation_reply: features.annotationReply,
|
annotation_reply: features.annotationReply,
|
||||||
} as ChatConfig
|
} as ChatConfig
|
||||||
}, [configTemplate, features])
|
}, [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 {
|
const {
|
||||||
chatList,
|
chatList,
|
||||||
chatListRef,
|
chatListRef,
|
||||||
|
@ -63,7 +63,9 @@ const DebugWithSingleModel = forwardRef<DebugWithSingleModelRefType, DebugWithSi
|
|||||||
annotation_reply: features.annotationReply,
|
annotation_reply: features.annotationReply,
|
||||||
} as ChatConfig
|
} as ChatConfig
|
||||||
}, [configTemplate, features])
|
}, [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 {
|
const {
|
||||||
chatList,
|
chatList,
|
||||||
chatListRef,
|
chatListRef,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user