mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-02 22:07:31 +08:00
Fix multiple model chat, the content overwrite the current chat session (#17566)
This commit is contained in:
@@ -26,6 +26,7 @@ import { AudioButton } from '../ui/audio-button';
|
||||
export type NextMessageInputOnPressEnterParameter = {
|
||||
enableThinking?: string;
|
||||
enableInternet?: boolean;
|
||||
store_history_messages?: boolean;
|
||||
};
|
||||
|
||||
interface NextMessageInputProps {
|
||||
|
||||
@@ -139,7 +139,7 @@ const ChatCard = forwardRef(function ChatCard(
|
||||
// resend with the card's model settings (llm_id, temperature, ...).
|
||||
const sendCardMessage = useCallback(
|
||||
({ message, messages }: { message: IMessage; messages?: IMessage[] }) =>
|
||||
sendMessage({ message, messages, ...form.getValues() }),
|
||||
sendMessage({ message, messages, ...form.getValues(), store_history_messages: false }),
|
||||
[sendMessage, form],
|
||||
);
|
||||
|
||||
@@ -182,7 +182,7 @@ const ChatCard = forwardRef(function ChatCard(
|
||||
useImperativeHandle(
|
||||
ref,
|
||||
(): HandlePressEnterType => (params) =>
|
||||
handlePressEnter({ ...params, ...form.getValues() }),
|
||||
handlePressEnter({ ...params, ...form.getValues(), store_history_messages: false }),
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user