Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ public async Task GetChatMessageContentsRequestHandlesInternalFieldsCorrectlyAsy
[InlineData("string", "low")]
[InlineData("string", "medium")]
[InlineData("string", "high")]
[InlineData("string", "minimal")]
[InlineData("ChatReasonEffortLevel.Low", "low")]
[InlineData("ChatReasonEffortLevel.Medium", "medium")]
[InlineData("ChatReasonEffortLevel.High", "high")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ public async Task GetChatMessageInResponseFormatsAsync(string formatType, string
[InlineData("string", "low")]
[InlineData("string", "medium")]
[InlineData("string", "high")]
[InlineData("string", "minimal")]
[InlineData("ChatReasonEffortLevel.Low", "low")]
[InlineData("ChatReasonEffortLevel.Medium", "medium")]
[InlineData("ChatReasonEffortLevel.High", "high")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ protected virtual ChatCompletionOptions CreateChatCompletionOptions(
"LOW" => ChatReasoningEffortLevel.Low,
"MEDIUM" => ChatReasoningEffortLevel.Medium,
"HIGH" => ChatReasoningEffortLevel.High,
"MINIMAL" => new("minimal"),
_ => throw new NotSupportedException($"The provided reasoning effort '{textEffortLevel}' is not supported.")
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OpenAIPromptExecutionSettings : PromptExecutionSettings
/// Constrains effort on reasoning for reasoning models.
/// Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
/// Possible values are:
/// <para>- <see cref="string"/> values: <c>"low"</c>, <c>"medium"</c>, <c>"high"</c>;</para>
/// <para>- <see cref="string"/> values: <c>"low"</c>, <c>"medium"</c>, <c>"high"</c>, <c>"minimal"</c>;</para>
/// <para>- <see cref="ChatReasoningEffortLevel"/> object;</para>
/// </remarks>
[JsonPropertyName("reasoning_effort")]
Expand Down
Loading