mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-07 19:15:05 +08:00
Feat: Move the reasoning field to the root of the payload in the completion interface. (#12990)
### What problem does this PR solve? ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -30,6 +30,11 @@ import { useCallback, useEffect, useState } from 'react';
|
||||
import { toast } from 'sonner';
|
||||
import { AudioButton } from '../ui/audio-button';
|
||||
|
||||
export type NextMessageInputOnPressEnterParameter = {
|
||||
enableThinking: boolean;
|
||||
enableInternet: boolean;
|
||||
};
|
||||
|
||||
interface NextMessageInputProps {
|
||||
disabled: boolean;
|
||||
value: string;
|
||||
@ -43,10 +48,7 @@ interface NextMessageInputProps {
|
||||
onPressEnter({
|
||||
enableThinking,
|
||||
enableInternet,
|
||||
}: {
|
||||
enableThinking: boolean;
|
||||
enableInternet: boolean;
|
||||
}): void;
|
||||
}: NextMessageInputOnPressEnterParameter): void;
|
||||
onInputChange: React.ChangeEventHandler<HTMLTextAreaElement>;
|
||||
createConversationBeforeUploadDocument?(message: string): Promise<any>;
|
||||
stopOutputMessage?(): void;
|
||||
@ -56,10 +58,6 @@ interface NextMessageInputProps {
|
||||
showInternet?: boolean;
|
||||
}
|
||||
|
||||
export type NextMessageInputOnPressEnterParameter = Parameters<
|
||||
NextMessageInputProps['onPressEnter']
|
||||
>;
|
||||
|
||||
export function NextMessageInput({
|
||||
isUploading = false,
|
||||
value,
|
||||
|
||||
Reference in New Issue
Block a user