Skip to content

Commit 1fa5728

Browse files
kurnakovvjsquire
andauthored
#673 Add ReasoningEffort.minimal value (#700)
* Add ReasoningEffort.minimal value (#673) * Update api files (#675) * Add ReasoningEffortLevel.Minimal to CHANGELOG (#675) * Update CHANGELOG.md --------- Co-authored-by: Jesse Squire <[email protected]>
1 parent 6bb8493 commit 1fa5728

File tree

7 files changed

+13512
-13465
lines changed

7 files changed

+13512
-13465
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 2.6.0-beta.1 (Unreleased)
4+
5+
### Features Added
6+
7+
- OpenAI.Chat:
8+
- Added the `Minimal` property to `ChatReasoningEffortLevel`
9+
10+
- OpenAI.Responses:
11+
- Added the `Minimal` property to `ResponseReasoningEffortLevel`
12+
313
## 2.5.0 (2025-09-23)
414

515
### Features Added

api/OpenAI.net8.0.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,6 +1970,7 @@ public class ChatOutputTokenUsageDetails : IJsonModel<ChatOutputTokenUsageDetail
19701970
public static ChatReasoningEffortLevel High { get; }
19711971
public static ChatReasoningEffortLevel Low { get; }
19721972
public static ChatReasoningEffortLevel Medium { get; }
1973+
public static ChatReasoningEffortLevel Minimal { get; }
19731974
public readonly bool Equals(ChatReasoningEffortLevel other);
19741975
[EditorBrowsable(EditorBrowsableState.Never)]
19751976
public override readonly bool Equals(object obj);
@@ -5641,6 +5642,7 @@ public class ResponseOutputTokenUsageDetails : IJsonModel<ResponseOutputTokenUsa
56415642
public static ResponseReasoningEffortLevel High { get; }
56425643
public static ResponseReasoningEffortLevel Low { get; }
56435644
public static ResponseReasoningEffortLevel Medium { get; }
5645+
public static ResponseReasoningEffortLevel Minimal { get; }
56445646
public readonly bool Equals(ResponseReasoningEffortLevel other);
56455647
[EditorBrowsable(EditorBrowsableState.Never)]
56465648
public override readonly bool Equals(object obj);

api/OpenAI.netstandard2.0.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,7 @@ public class ChatOutputTokenUsageDetails : IJsonModel<ChatOutputTokenUsageDetail
17241724
public static ChatReasoningEffortLevel High { get; }
17251725
public static ChatReasoningEffortLevel Low { get; }
17261726
public static ChatReasoningEffortLevel Medium { get; }
1727+
public static ChatReasoningEffortLevel Minimal { get; }
17271728
public readonly bool Equals(ChatReasoningEffortLevel other);
17281729
[EditorBrowsable(EditorBrowsableState.Never)]
17291730
public override readonly bool Equals(object obj);
@@ -4988,6 +4989,7 @@ public class ResponseOutputTokenUsageDetails : IJsonModel<ResponseOutputTokenUsa
49884989
public static ResponseReasoningEffortLevel High { get; }
49894990
public static ResponseReasoningEffortLevel Low { get; }
49904991
public static ResponseReasoningEffortLevel Medium { get; }
4992+
public static ResponseReasoningEffortLevel Minimal { get; }
49914993
public readonly bool Equals(ResponseReasoningEffortLevel other);
49924994
[EditorBrowsable(EditorBrowsableState.Never)]
49934995
public override readonly bool Equals(object obj);

specification/base/typespec/common/models.tsp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,12 @@ model ChatCompletionStreamOptions {
224224
225225
Constrains effort on reasoning for
226226
[reasoning models](https://platform.openai.com/docs/guides/reasoning).
227-
Currently supported values are `low`, `medium`, and `high`. Reducing
227+
Currently supported values are `minimal`, `low`, `medium`, and `high`. Reducing
228228
reasoning effort can result in faster responses and fewer tokens used
229229
on reasoning in a response.
230230
""")
231231
union ReasoningEffort {
232+
"minimal",
232233
"low",
233234
"medium",
234235
"high",

src/Generated/Models/Chat/ChatReasoningEffortLevel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace OpenAI.Chat
1313
public readonly partial struct ChatReasoningEffortLevel : IEquatable<ChatReasoningEffortLevel>
1414
{
1515
private readonly string _value;
16+
private const string MinimalValue = "minimal";
1617
private const string LowValue = "low";
1718
private const string MediumValue = "medium";
1819
private const string HighValue = "high";
@@ -24,6 +25,8 @@ public ChatReasoningEffortLevel(string value)
2425
_value = value;
2526
}
2627

28+
public static ChatReasoningEffortLevel Minimal { get; } = new ChatReasoningEffortLevel(MinimalValue);
29+
2730
public static ChatReasoningEffortLevel Low { get; } = new ChatReasoningEffortLevel(LowValue);
2831

2932
public static ChatReasoningEffortLevel Medium { get; } = new ChatReasoningEffortLevel(MediumValue);

src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace OpenAI.Responses
1313
public readonly partial struct ResponseReasoningEffortLevel : IEquatable<ResponseReasoningEffortLevel>
1414
{
1515
private readonly string _value;
16+
private const string MinimalValue = "minimal";
1617
private const string LowValue = "low";
1718
private const string MediumValue = "medium";
1819
private const string HighValue = "high";
@@ -24,6 +25,8 @@ public ResponseReasoningEffortLevel(string value)
2425
_value = value;
2526
}
2627

28+
public static ResponseReasoningEffortLevel Minimal { get; } = new ResponseReasoningEffortLevel(MinimalValue);
29+
2730
public static ResponseReasoningEffortLevel Low { get; } = new ResponseReasoningEffortLevel(LowValue);
2831

2932
public static ResponseReasoningEffortLevel Medium { get; } = new ResponseReasoningEffortLevel(MediumValue);

0 commit comments

Comments
 (0)