Closed ivanleomk closed 2 weeks ago
Latest commit: |
68be699
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2da927fc.instructor.pages.dev |
Branch Preview URL: | https://disable-pydantic-error.instructor.pages.dev |
@ssonal I forked your previous branch and made the function opt-in Instead. Wasn't able to get the CI working for your branch for some reason.
This solves issue #509 and is based off #662.
Summary:
Added a function to disable URLs in Pydantic error messages, updated documentation, and included tests.
Key points:
disable_pydantic_error_url
function ininstructor/utils.py
to disable URLs in Pydantic error messages by settingPYDANTIC_ERRORS_INCLUDE_URL
to0
.docs/concepts/reask_validation.md
with a section on optimizing token usage by disabling Pydantic error URLs.test_pylance_url_config
intests/test_function_calls.py
to verify the removal of URLs from Pydantic error messages.docs/concepts/reask_validation.md
to demonstrate the usage ofdisable_pydantic_error_url
.Generated with :heart: by ellipsis.dev