extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Revert M.E.AI.OpenAI change that turns on strict by default

Open stephentoub opened this issue 1 year ago • 3 comments

While we now ourselves generate schema that we think conforms to what OpenAI allows in strict mode, not all AIFunctions come from AIFunctionFactory. Any other AIFunction that gets its schema from somewhere else doesn't necessarily conform to the strict rules OpenAI puts in place, and using it via an abstraction makes it really hard to have such hard constraints there by default. We see this with MCP, for example, where MCP tools advertise valid schema that OpenAI's strict mode rejects, e.g. using default.

stephentoub avatar Apr 09 '25 04:04 stephentoub

While strict schema compliance doesn't necessarily need to be the default, at least the option to set it should be provided (for example as an additional property).

NiceWaffel avatar Apr 09 '25 08:04 NiceWaffel

It was already possible by setting a value into AdditionalProperties.

stephentoub avatar Apr 09 '25 11:04 stephentoub

Should we disable some of the other nonstandard settings imposed by OpenAI restrictions? Thinking of IncludeTypeInEnumSchemas, DisallowAdditionalProperties?

eiriktsarpalis avatar Apr 11 '25 09:04 eiriktsarpalis