feat: add reasoningContent to Message and reasoning delta type

This commit is contained in:
Bin-Home 2026-04-28 13:31:54 +08:00
parent 96eefeb1c8
commit 5df971de0d

View file

@ -13,10 +13,11 @@ export interface Message {
content: string;
toolCalls?: ToolCall[];
toolCallId?: string;
reasoningContent?: string;
}
export interface Delta {
type: "text" | "tool_call" | "done" | "error";
type: "text" | "tool_call" | "done" | "error" | "reasoning";
text?: string;
toolCall?: ToolCall;
error?: { kind: string; message: string };