Skip to content
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

add example code block #106

Merged
merged 2 commits into from
Feb 8, 2024
Merged

add example code block #106

merged 2 commits into from
Feb 8, 2024

Conversation

mlluciano
Copy link
Contributor

@mlluciano mlluciano commented Feb 4, 2024

Added code block for self correction example where max_retries=2.


Ellipsis 🚀 This PR description was created by Ellipsis for commit 59e3249.

Summary:

This PR adds a code block to self_correction.md demonstrating the use of max_retries parameter in instructor.chat.completions.create function and error handling with a try-catch block.

Key points:

  • Added a code block to self_correction.md in docs/examples.
  • The code block demonstrates the use of max_retries parameter in instructor.chat.completions.create function.
  • Included a try-catch block to handle ZodError.

Generated with ❤️ by ellipsis.dev

Copy link

changeset-bot bot commented Feb 4, 2024

⚠️ No Changeset found

Latest commit: e535880

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested.


Something look wrong? You can customize Ellipsis by editing the ellipsis.yaml for this repository.

Generated with ❤️ by ellipsis.dev

docs/examples/self_correction.md Show resolved Hide resolved
@jxnl jxnl merged commit f3483e2 into instructor-ai:main Feb 8, 2024
1 of 2 checks passed
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.

2 participants