How do you use Sentry?
Self-hosted/on-premise
Version
2.41
Steps to Reproduce
- Upgrade
open_ai >= 1.108.1
- Invoke a
completions.create() with the new Omit
- Fails on line
212 inside sentry_sdk.integrations.openai.py
Expected Result
To not try to execute the if-statement inside rule 212
Actual Result
Since the new function is Omit, the NOT_GIVEN and None check are passed and then tries to get the length from an Omit which does not exist.