This commit is contained in:
StyleZhang 2024-03-19 19:46:14 +08:00
parent 28dc089540
commit 089072432e

View File

@ -33,6 +33,7 @@ const ChatWrapper = forwardRef<ChatWrapperRefType>((_, ref) => {
const workflowStore = useWorkflowStore() const workflowStore = useWorkflowStore()
const featuresStore = useFeaturesStore() const featuresStore = useFeaturesStore()
const inputs = useStore(s => s.inputs) const inputs = useStore(s => s.inputs)
const workflowRunId = useStore(s => s.workflowRunId)
const { handleStopRun } = useWorkflowRun() const { handleStopRun } = useWorkflowRun()
const features = featuresStore!.getState().features const features = featuresStore!.getState().features
@ -95,7 +96,7 @@ const ChatWrapper = forwardRef<ChatWrapperRefType>((_, ref) => {
return ( return (
<Chat <Chat
config={config as any} config={config as any}
chatList={chatList} chatList={chatList.map(item => ({ ...item, workflow_run_id: workflowRunId }))}
isResponding={isResponding} isResponding={isResponding}
chatContainerclassName='px-4' chatContainerclassName='px-4'
chatContainerInnerClassName='pt-6' chatContainerInnerClassName='pt-6'
@ -105,6 +106,7 @@ const ChatWrapper = forwardRef<ChatWrapperRefType>((_, ref) => {
onStopResponding={doStop} onStopResponding={doStop}
chatNode={<UserInput />} chatNode={<UserInput />}
suggestedQuestions={suggestedQuestions} suggestedQuestions={suggestedQuestions}
showPromptLog
/> />
) )
}) })