Skip to content

Conversation

@cloudnautique
Copy link
Contributor

According to the spec readOnly fields SHOULD NOT be sent in the request, but maybe present in the response. The LLM has made several errors making calls when these fields are present by including the readOnly fields in the request and getting HTTP 422's.

This change loops through the args, and drops readOnly fields from the requestBodyContent arg on the tool.

According to the spec readOnly fields SHOULD NOT be sent in
the request, but maybe present in the response. The LLM has made
several errors making calls when these fields are present by including
the readOnly fields in the request and getting HTTP 422's.

This change loops through the args, and drops readOnly fields from the
requestBodyContent arg on the tool.

Signed-off-by: Bill Maxwell <[email protected]>
@cloudnautique cloudnautique requested a review from g-linville June 3, 2024 23:39
@ibuildthecloud ibuildthecloud self-requested a review June 4, 2024 00:30
@cloudnautique cloudnautique merged commit 58afa9f into gptscript-ai:main Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants