-
Notifications
You must be signed in to change notification settings - Fork 3.8k
When debug logging is enabled, api-key header is also printed #1082
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
Labels
bug
Something isn't working
Comments
Thanks for raising, we'll look into this. |
1 task
1 task
1 task
Is thera any update concerning this issue? |
Are there plans to fix this soon? |
1 task
this was fixed in |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
When debug logging is enabled,
FinalRequestOptions
is entirely dumped because of the following code:openai-python/src/openai/_base_client.py
Lines 436 to 437 in 3d61ed4
This includes the
api-key
header that would be great to avoid loggingTo Reproduce
Code snippets
No response
OS
WSL
Python version
Python v3.9.18
Library version
openai v1.7.2
The text was updated successfully, but these errors were encountered: