mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Allow users to enter text in the middle of a chat #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -12,6 +12,7 @@ import { useClickDrawer } from '@/components/pdf-drawer/hooks';
|
||||
import { useFetchAgent } from '@/hooks/use-agent-request';
|
||||
import { useFetchUserInfo } from '@/hooks/user-setting-hooks';
|
||||
import { buildMessageUuidWithRole } from '@/utils/chat';
|
||||
import { InputForm } from './input-form';
|
||||
|
||||
const AgentChatBox = () => {
|
||||
const {
|
||||
@ -24,6 +25,7 @@ const AgentChatBox = () => {
|
||||
derivedMessages,
|
||||
reference,
|
||||
stopOutputMessage,
|
||||
send,
|
||||
} = useSendNextMessage();
|
||||
|
||||
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
|
||||
@ -59,7 +61,9 @@ const AgentChatBox = () => {
|
||||
index={i}
|
||||
showLikeButton={false}
|
||||
sendLoading={sendLoading}
|
||||
></MessageItem>
|
||||
>
|
||||
<InputForm send={send} message={message}></InputForm>
|
||||
</MessageItem>
|
||||
);
|
||||
})}
|
||||
</Spin>
|
||||
|
||||
Reference in New Issue
Block a user