Skip to content

genai: handle system role renamed to developer in openai #1877

@xrmx

Description

@xrmx

Area(s)

area:gen-ai

What's missing?

OpenAI renamed the system role to developer: https://platform.openai.com/docs/guides/text-generation#messages-and-roles

Python openai instrumentation is sending whatever it gets in the role as event name (https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py#L107) so it's out of spec in case it gets the developer role. Before touching the code would be nice to discuss how we want to handle this.

Describe the solution you'd like

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Need triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions