Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion specification/base/typespec/common/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ model ChatCompletionStreamOptions {

Constrains effort on reasoning for
[reasoning models](https://platform.openai.com/docs/guides/reasoning).
Currently supported values are `low`, `medium`, and `high`. Reducing
Currently supported values are `minimal`, `low`, `medium`, and `high`. Reducing
reasoning effort can result in faster responses and fewer tokens used
on reasoning in a response.
""")
union ReasoningEffort {
"minimal",
"low",
"medium",
"high",
Expand Down
3 changes: 3 additions & 0 deletions src/Generated/Models/Chat/ChatReasoningEffortLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace OpenAI.Chat
public readonly partial struct ChatReasoningEffortLevel : IEquatable<ChatReasoningEffortLevel>
{
private readonly string _value;
private const string MinimalValue = "minimal";
private const string LowValue = "low";
private const string MediumValue = "medium";
private const string HighValue = "high";
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace OpenAI.Responses
public readonly partial struct ResponseReasoningEffortLevel : IEquatable<ResponseReasoningEffortLevel>
{
private readonly string _value;
private const string MinimalValue = "minimal";
private const string LowValue = "low";
private const string MediumValue = "medium";
private const string HighValue = "high";
Expand All @@ -24,6 +25,8 @@ public ResponseReasoningEffortLevel(string value)
_value = value;
}

public static ResponseReasoningEffortLevel Minimal { get; } = new ResponseReasoningEffortLevel(MinimalValue);

public static ResponseReasoningEffortLevel Low { get; } = new ResponseReasoningEffortLevel(LowValue);

public static ResponseReasoningEffortLevel Medium { get; } = new ResponseReasoningEffortLevel(MediumValue);
Expand Down
Loading