-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
[Ellipsis] Add MD_YAML Mode to Patch Function #688
Conversation
…to optimize input tokens);
Deploying instructor with
|
Latest commit: |
f61fd78
|
Status: | ✅ Deploy successful! |
Preview URL: | https://bdb1aad4.instructor.pages.dev |
Branch Preview URL: | https://ellipsis-wflow-akw3ynscskj2i.instructor.pages.dev |
Sweep: PR Reviewinstructor/client.pyThe changes add support for the instructor/function_calls.pyThe changes introduce support for parsing and validating YAML formatted responses by adding a new import, modifying the instructor/mode.pyA new mode instructor/process_response.pyThe changes introduce support for handling YAML formatted responses by adding the Sweep Found These Issues
instructor/instructor/process_response.py Lines 239 to 269 in f61fd78
View Diff instructor/retry.pyA new Sweep Found These Issues
instructor/instructor/retry.py Lines 118 to 122 in f61fd78
View Diff instructor/utils.pyThe changes introduce the Sweep Found These Issues
instructor/instructor/utils.py Lines 74 to 81 in f61fd78
View Diff patch.mdThe changes add documentation for a new mode Sweep Found These Issues
Lines 1 to 24 in f61fd78
View Diff tests/llm/test_openai/test_modes.pyA new test function |
```python | ||
client = instructor.patch(client, mode=instructor.Mode.MD_YAML) | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ellipsis-dev delete everything below this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change addresses review comments left by @jxnl on PR #674: Add markdown yaml input mode to optimize input tokens
Summary:
This PR adds a new
MD_YAML
mode to thepatch
function to support parsing YAML inputs within markdown and converting them to JSON.Key points:
MD_YAML
mode inpatch
functionYou can configure Ellipsis to address comments with a direct commit or a side PR, see docs.
Something look wrong?: If this Pull Request doesn't address the comments left on the above pull request, create a new PR review with more details. For more information, check the documentation.
Generated with ❤️ by ellipsis.dev