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

Redact sensitive header when DEBUG is set #1218

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

minhanh-phan
Copy link

@minhanh-phan minhanh-phan commented Dec 10, 2024

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Redact values for authorization and api-key when DEBUG value is set to true.

Additional context & links

openai/openai-python#1850

@minhanh-phan minhanh-phan marked this pull request as ready for review December 10, 2024 21:02
@minhanh-phan minhanh-phan requested a review from a team as a code owner December 10, 2024 21:02
tests/qs/utils.test.ts Outdated Show resolved Hide resolved
src/core.ts Outdated Show resolved Hide resolved
src/core.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@RobertCraigie RobertCraigie left a comment

Choose a reason for hiding this comment

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

small comment on mutation and tests, otherwise LGTM, thanks!

src/core.ts Show resolved Hide resolved
tests/index.test.ts Show resolved Hide resolved
@bryanemmanuelbasor bryanemmanuelbasor mentioned this pull request Dec 14, 2024
@RobertCraigie
Copy link
Collaborator

I made some changes to avoid cloning until we need to and to avoid using JSON round-tripping, lmk if that still looks good to you.

@minhanh-phan
Copy link
Author

@RobertCraigie The changes look goods to me. Thank you for the constructive feedback!

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