-
Notifications
You must be signed in to change notification settings - Fork 3.7k
.Net: Bug: Function call with complex objects fails with o3-mini #11509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @AlesRuzickaEu, for some reason "o3-mini" fails when the strict mode is enabled, even though a few other models that support the strict mode work perfectly fine. The produced schema for the function parameters is fully compatible with the one required by the strict mode: {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "object",
"properties": {
"Name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false,
"required": [
"Name"
]
}
},
"additionalProperties": false
} So, at the moment, you have two options:
|
What worked for me is making everything required. |
Yep, making the |
Describe the bug
Function call with complex object and optional values fail with o3-mini (works with gpt-4o)
To Reproduce
Minimal code:
Expected behavior
Expect function call with complex object
Actual behavior
Throws Error:
Microsoft.SemanticKernel.HttpOperationException: 'HTTP 400 (invalid_request_error: )
Invalid schema for function 'Plugin-generate': In context=('properties', 'result', 'properties', 'Name'), schema must have a 'type' key.'
Platform
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: