Skip to content

Upgrade OpenAI and use the new OMIT convention instead of NOT_GIVEN #4923

@JornTeurlings

Description

@JornTeurlings

How do you use Sentry?

Self-hosted/on-premise

Version

2.41

Steps to Reproduce

  1. Upgrade open_ai >= 1.108.1
  2. Invoke a completions.create() with the new Omit
  3. 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.

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions