feat: thinking style optimize

This commit is contained in:
Hk-Gosuto
2025-03-03 15:33:19 +08:00
parent ac9bdf642e
commit 78dd2d4258
8 changed files with 216 additions and 13 deletions

View File

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