Skip to content

[API Proposal]: ChatOptions Reasoning values None and Minimal #7318

@SlowFourierTransform

Description

@SlowFourierTransform

Background and motivation

The ReasoningEffort enum was introduced in #7252 however this enum is missing the Minimal value, as supported by OpenAI.

OpenAI recently introduced a reasoning value of None. The ReasoningEffort enum does have a value of None, however it seems that this value is ignored and not passed to the OpenAI library, causing confusion.

The none and minimal values are mentioned in the inital issue #7192

API Proposal

namespace Microsoft.Extensions.AI;

public enum ReasoningEffort
{
    None, // this already exists but is ignored

    Minimal,

    // existing values
}

API Usage

ChatResponse response = await chatClient.GetResponseAsync("Hi", new ChatOptions
{
    Reasoning = Reasoning.Minimal,
});

Alternative Designs

No response

Risks

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-aiMicrosoft.Extensions.AI libraries

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions