mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 20:48:01 +08:00
chat log
This commit is contained in:
parent
28dc089540
commit
089072432e
@ -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
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user