From 3f53ae6ab153ab6332bf4062057ab945734eec47 Mon Sep 17 00:00:00 2001 From: VaalaCat Date: Wed, 12 Feb 2025 13:24:21 +0000 Subject: [PATCH] feat: add include_reasoning --- chat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat.go b/chat.go index ce24fa3..d05fc8e 100644 --- a/chat.go +++ b/chat.go @@ -261,7 +261,8 @@ type ChatCompletionRequest struct { // Controls effort on reasoning for reasoning models. It can be set to "low", "medium", or "high". ReasoningEffort string `json:"reasoning_effort,omitempty"` // Metadata to store with the completion. - Metadata map[string]string `json:"metadata,omitempty"` + Metadata map[string]string `json:"metadata,omitempty"` + IncludeReasoning *bool `json:"include_reasoning,omitempty"` } type StreamOptions struct {