getsentry / getsentry/sentry-python
Remove (or at least mitigate) shadowing of `input` within the OpenAI integration
Offen
Python
Refactoring
Task
- Vorherrschende Sprache
- Python
- Sterne
- 2.2k
- Forks
- 669
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 213
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.