add reasoning block
This commit is contained in:
@@ -21,6 +21,7 @@ export type ChatUserMessage = {
|
||||
export type ChatAssistantMessage = {
|
||||
role: 'assistant'
|
||||
content: string
|
||||
reasoningContent: string
|
||||
id: string
|
||||
metadata?: {
|
||||
usage?: ResponseUsage
|
||||
@@ -44,6 +45,7 @@ export type SerializedChatUserMessage = {
|
||||
export type SerializedChatAssistantMessage = {
|
||||
role: 'assistant'
|
||||
content: string
|
||||
reasoningContent: string
|
||||
id: string
|
||||
metadata?: {
|
||||
usage?: ResponseUsage
|
||||
|
||||
@@ -39,7 +39,8 @@ type NonStreamingChoice = {
|
||||
type StreamingChoice = {
|
||||
finish_reason: string | null
|
||||
delta: {
|
||||
content: string | null
|
||||
content: string | null
|
||||
reasoning_content: string | null
|
||||
role?: string
|
||||
}
|
||||
error?: Error
|
||||
|
||||
Reference in New Issue
Block a user