|
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.