From 67f3b169df590ad8c13b6aa27532ad404926e993 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 c8a3e81..2f1467e 100644 --- a/chat.go +++ b/chat.go @@ -272,7 +272,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"` // Configuration for a predicted output. Prediction *Prediction `json:"prediction,omitempty"` // ChatTemplateKwargs provides a way to add non-standard parameters to the request body.