Skip to content

[Microsoft Extensions] Strict is being populated for even structured-outputs-2025-11-13 #64

@PederHP

Description

@PederHP

Strict = GetValue<bool?>(af, nameof(BetaTool.Strict)),

When passing any tool to a beta client, even if structured-outputs-2025-11-13 is not set, the Strict tool is sent (presumably with a default). This isn't allowed if the beta header isn't present and results in the following API error:
tools 0 custom strict extra inputs are not permitted

Either the presence of the property should auto-include the header, or the property should only be included if the header is set via RawRepresentationFactory.

NB! This might be an issue even without using IChatClient extensions - I haven't verified this yet. But the API definitely doesn't want that property being sent if the beta headers is not set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions