mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-14 21:13:47 +08:00
feat: thinking style optimize
This commit is contained in:
@@ -45,6 +45,7 @@ export interface MultimodalContent {
|
||||
export interface RequestMessage {
|
||||
role: MessageRole;
|
||||
content: string | MultimodalContent[];
|
||||
reasoningContent?: string;
|
||||
fileInfos?: FileInfo[];
|
||||
webSearchReferences?: TavilySearchResponse;
|
||||
}
|
||||
@@ -93,6 +94,7 @@ export interface ChatOptions {
|
||||
|
||||
onToolUpdate?: (toolName: string, toolInput: string) => void;
|
||||
onUpdate?: (message: string, chunk: string) => void;
|
||||
onReasoningUpdate?: (message: string, chunk: string) => void;
|
||||
onFinish: (message: string, responseRes: Response) => void;
|
||||
onError?: (err: Error) => void;
|
||||
onController?: (controller: AbortController) => void;
|
||||
|
||||
Reference in New Issue
Block a user