[openai] 'tools' is incorrectly packed when the tool lacks parameters. #41447
Labels
Client
This issue points to a problem in the data-plane of the library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
Service Attention
Workflow: This issue is responsible by Azure service team.
Uh oh!
There was an error while loading. Please reload this page.
With the code:
I see error:
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid schema for function 'azmcp-bestpractices-get': In context=(), object schema missing properties.", 'type': 'invalid_request_error', 'param': 'tools[0].function.parameters', 'code': 'invalid_function_parameters'}}
if the tool has parameters, it works fine.
The text was updated successfully, but these errors were encountered: