From 86069f62c7b4a30fa0f7d063a884930afa2ea9c8 Mon Sep 17 00:00:00 2001 From: kurnakovv Date: Wed, 10 Sep 2025 22:42:04 +0900 Subject: [PATCH] #673 Add ChatReasoningEffortLevel.Minimal value --- src/Custom/Chat/ChatCompletionOptions.cs | 2 +- src/Generated/Models/Chat/ChatReasoningEffortLevel.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Custom/Chat/ChatCompletionOptions.cs b/src/Custom/Chat/ChatCompletionOptions.cs index e26535383..b25411e5e 100644 --- a/src/Custom/Chat/ChatCompletionOptions.cs +++ b/src/Custom/Chat/ChatCompletionOptions.cs @@ -153,7 +153,7 @@ public partial class ChatCompletionOptions // - Renamed. /// /// (o1 and newer reasoning models only) Constrains effort on reasoning for reasoning models. - /// Currently supported values are , , and . + /// Currently supported values are , , , and . /// Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. /// [Experimental("OPENAI001")] diff --git a/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs b/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs index 27653e2ff..b838a185a 100644 --- a/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs +++ b/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs @@ -13,6 +13,7 @@ namespace OpenAI.Chat public readonly partial struct ChatReasoningEffortLevel : IEquatable { private readonly string _value; + private const string MinimalValue = "minimal"; private const string LowValue = "low"; private const string MediumValue = "medium"; private const string HighValue = "high"; @@ -24,6 +25,8 @@ public ChatReasoningEffortLevel(string value) _value = value; } + public static ChatReasoningEffortLevel Minimal { get; } = new ChatReasoningEffortLevel(MinimalValue); + public static ChatReasoningEffortLevel Low { get; } = new ChatReasoningEffortLevel(LowValue); public static ChatReasoningEffortLevel Medium { get; } = new ChatReasoningEffortLevel(MediumValue);