| const [currentConversation, setCurrentConversation] = useState<ChatConversationGeneralDetail | CompletionConversationGeneralDetail | undefined>() // Currently selected conversation | const [currentConversation, setCurrentConversation] = useState<ChatConversationGeneralDetail | CompletionConversationGeneralDetail | undefined>() // Currently selected conversation | ||||
| const isChatMode = appDetail.mode !== 'completion' // Whether the app is a chat app | const isChatMode = appDetail.mode !== 'completion' // Whether the app is a chat app | ||||
| const isChatflow = appDetail.mode === 'advanced-chat' // Whether the app is a chatflow app | const isChatflow = appDetail.mode === 'advanced-chat' // Whether the app is a chatflow app | ||||
| const { setShowPromptLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({ | |||||
| const { setShowPromptLogModal, setShowAgentLogModal, setShowMessageLogModal } = useAppStore(useShallow(state => ({ | |||||
| setShowPromptLogModal: state.setShowPromptLogModal, | setShowPromptLogModal: state.setShowPromptLogModal, | ||||
| setShowAgentLogModal: state.setShowAgentLogModal, | setShowAgentLogModal: state.setShowAgentLogModal, | ||||
| setShowMessageLogModal: state.setShowMessageLogModal, | |||||
| }))) | }))) | ||||
| // Annotated data needs to be highlighted | // Annotated data needs to be highlighted | ||||
| setCurrentConversation(undefined) | setCurrentConversation(undefined) | ||||
| setShowPromptLogModal(false) | setShowPromptLogModal(false) | ||||
| setShowAgentLogModal(false) | setShowAgentLogModal(false) | ||||
| setShowMessageLogModal(false) | |||||
| } | } | ||||
| if (!logs) | if (!logs) |