Skip to content

Conversation

@Vein05
Copy link
Collaborator

@Vein05 Vein05 commented Mar 25, 2025

#48 Added this functionality. To use it you need to call the Delta with Tool calls, and everything works normally as the TooCalls.

// 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.
	ReasoningContent string     `json:"reasoning_content,omitempty"` // Reasoning content of the message.
	ToolCalls        []ToolCall `json:"tool_calls,omitempty"`        // Optional tool calls related to the message.
}

@Vein05 Vein05 self-assigned this Mar 25, 2025
@Vein05 Vein05 merged commit b63957f into main Mar 25, 2025
1 check passed
@Vein05 Vein05 deleted the StreamingWithTools branch March 25, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant