Skip to content

Commit 3861db2

Browse files
committed
#673 Add ReasoningEffort.minimal value
1 parent f68f162 commit 3861db2

File tree

4 files changed

+13415
-13382
lines changed

4 files changed

+13415
-13382
lines changed

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)