getsentry / getsentry/sentry-python
Remove (or at least mitigate) shadowing of `input` within the OpenAI integration
Đang mở
Python
Refactoring
Task
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 669
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 213
Mô tả
There's a number of places where we name variables `input` (such as in \``_calculate_responses_token_usage`\`) that reflect the OpenAI variable names, but that cause shadowing of the `input` Python function.
We should look to rename these variables to avoid this.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.