Skip to content

Commit

Permalink
#32 feat: add ReasoningContent field to StreamDelta for enhanced mess…
Browse files Browse the repository at this point in the history
…age details
  • Loading branch information
Vein05 committed Feb 15, 2025
1 parent af2ebee commit 402298a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chat_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ type StreamUsage struct {

// StreamDelta represents a delta in the chat completion stream.
type StreamDelta struct {
Role string `json:"role,omitempty"` // Role of the message.
Content string `json:"content"` // Content of the message.
Role string `json:"role,omitempty"` // Role of the message.
Content string `json:"content"` // Content of the message.
ReasoningContent string `json:"reasoning_content,omitempty"` // Reasoning content of the message.
}

// StreamChoices represents a choice in the chat completion stream.
Expand Down

0 comments on commit 402298a

Please sign in to comment.