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:
balibabu
2026-02-04 19:21:49 +08:00
committed by GitHub
parent 4d4b5a978d
commit 2627a7f5a8
13 changed files with 78 additions and 738 deletions

View File

@ -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,