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

chore(pydantic v1): exclude specific properties when rich printing #1751

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

RobertCraigie
Copy link
Collaborator

@RobertCraigie RobertCraigie commented Sep 26, 2024

Previously we'd print things like this

ParsedChatCompletion[MathResponse](
    id='chatcmpl-ABqjDEHcQeJS1zQKQsjk7pryPMOPl',
    # ...
    _request_id='req_8b371ab5485eea304486a17d9e210bcc',
    __exclude_fields__={'__exclude_fields__', '_request_id'}
)

but we didn't intend for _request_id and __exclude_fields__ to be printed, this PR fixes that

@RobertCraigie RobertCraigie changed the base branch from main to next September 26, 2024 22:12
@RobertCraigie RobertCraigie marked this pull request as ready for review September 26, 2024 22:12
@RobertCraigie RobertCraigie requested a review from a team as a code owner September 26, 2024 22:12
@RobertCraigie RobertCraigie merged commit af535ce into next Sep 26, 2024
2 checks passed
@RobertCraigie RobertCraigie deleted the robert/fix-pydantic-v1-request-id-print branch September 26, 2024 22:12
@stainless-app stainless-app bot mentioned this pull request Sep 26, 2024
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.

1 participant