From f2044819ddfaa3a72683dc44a664991837e1e159 Mon Sep 17 00:00:00 2001 From: Vlad-Sebastian Cretu Date: Sat, 6 Sep 2025 18:36:49 +0300 Subject: [PATCH] added reasoning_content to ChatCompletionChunkChoiceDelta --- chatcompletion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chatcompletion.go b/chatcompletion.go index 7d2a658b..a1bee54b 100644 --- a/chatcompletion.go +++ b/chatcompletion.go @@ -683,6 +683,8 @@ func (r *ChatCompletionChunkChoice) UnmarshalJSON(data []byte) error { type ChatCompletionChunkChoiceDelta struct { // The contents of the chunk message. Content string `json:"content,nullable"` + // The reasoning content of the chunk message. + ReasoningContent string `json:"reasoning_content,nullable"` // Deprecated and replaced by `tool_calls`. The name and arguments of a function // that should be called, as generated by the model. //