Skip to content

feat(openai): trace inline moderation metadata#507

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-openai-moderation-spans
Jun 11, 2026
Merged

feat(openai): trace inline moderation metadata#507
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-openai-moderation-spans

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

resolves #505

OpenAI chat completions and streaming responses now preserve inline moderation results on span metadata when callers pass moderation={"model": "omni-moderation-latest"}. This gives users visibility into the provider's input and output safety classifications alongside the generated content.

Bump the OpenAI latest matrix pin to 2.41.0 because that SDK version introduced the inline moderation API surface. The latest OpenAI cassettes were deleted and re-recorded against 2.41.0 so playback matches the newly pinned provider version across the OpenAI, HTTP/2, and BTX test sessions.

OpenAI chat completions and streaming responses now preserve inline moderation results on span metadata when callers pass moderation={"model": "omni-moderation-latest"}. This gives users visibility into the provider's input and output safety classifications alongside the generated content.

Bump the OpenAI latest matrix pin to 2.41.0 because that SDK version introduced the inline moderation API surface. The latest OpenAI cassettes were deleted and re-recorded against 2.41.0 so playback matches the newly pinned provider version across the OpenAI, HTTP/2, and BTX test sessions.
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit fae4723 into main Jun 11, 2026
82 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-openai-moderation-spans branch June 11, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bot] OpenAI: inline moderation results not captured in Chat Completions spans when moderation= parameter is used

2 participants