Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: manage an 'x-strict': true attribute in openapi specs for assis… #4639

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

owengo
Copy link

@owengo owengo commented Nov 5, 2024

…tants which generates function calls with stric attribute

Pull Request Template

⚠️ Documentation Updates Notice:

  • Kindly note that documentation updates are managed in this repository: librechat.ai

LibreChat-AI/librechat.ai#162

Summary

#4637

By default the assistant actions are function calls not using the new "strict" mode available since structured output is available in gpt-4o.
With this patch we can use the new strict mode for assistants by simply adding a 'x-strict': true flag in the openapi spec of an action.

Change Type

Please delete any irrelevant options.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Testing

The client must have the updated data-provider package.

  1. add 'x-strict': true in the openapi spec of an existing action
  2. go to the https://platform.openai.com/assistants/ ( or refresh the page )
  3. In the functions list click on the ones matching the change and verify
  • "strict": true is present at the same level as "name"
  • "additionalProperties": false is present in the "parameters" object

Test Configuration:

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • A pull request for updating the documentation has been submitted.

…tants which generates function calls with stric attribute
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants