Skip to content

fix: openapi: return validation errors to the LLM; improve confirmation prompt #805

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

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

g-linville
Copy link
Member

This PR does two things in the OpenAPI revamp:

  • When the LLM provides arguments that do not match the JSONSchema, rather than exiting with an error, the validation errors are returned as a normal message to the LLM so that it can respond by trying again.
  • The confirmation prompt shown to the user when running an OpenAPI operation under the OpenAPI revamp is improved to provide details about the specific operation and arguments.

@g-linville g-linville merged commit 1226edb into gptscript-ai:main Aug 19, 2024
10 checks passed
@g-linville g-linville deleted the openapi-validation-errors branch August 19, 2024 17:18
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