mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-31 15:45:08 +08:00
### What problem does this PR solve? Feat: Users can chat directly without first creating a conversation. #11768 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -433,7 +433,7 @@ export const useSelectDerivedMessages = () => {
|
||||
);
|
||||
|
||||
const addNewestQuestion = useCallback(
|
||||
(message: Message, answer: string = '') => {
|
||||
(message: IMessage, answer: string = '') => {
|
||||
setDerivedMessages((pre) => {
|
||||
return [
|
||||
...pre,
|
||||
@ -446,6 +446,7 @@ export const useSelectDerivedMessages = () => {
|
||||
{
|
||||
role: MessageType.Assistant,
|
||||
content: answer,
|
||||
conversationId: message.conversationId,
|
||||
id: buildMessageUuid({ ...message, role: MessageType.Assistant }),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user