additionalProperties not being set to false. #29727
Unanswered
spatnala-eightfold
asked this question in
Q&A
Replies: 2 comments
-
Did you find any solution for the issue, I am also facing it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
We bind the tools like this
Description
I defined my tools in this way and I am using ChatOpenAI and binding these tools to it. Upon invoking the llm I get this error
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid schema for function 'update_requisition': In context=('properties', 'field_values', 'anyOf', '0'), 'additionalProperties' is required to be supplied and to be false.", 'type': 'invalid_request_error', 'param': 'tools[6].function.parameters', 'code': 'invalid_function_parameters'}}
I tried printing the json schema of the InputSchema pydantic model and this is what I got
The problem is this issue is flaky. Sometimes it runs without any exception and sometimes it throws this error. What is the solution to this issue ?
System Info
I am on version langgraph 0.2.70 and langchain 0.3.18
Beta Was this translation helpful? Give feedback.
All reactions