Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xrmx opened this issue Feb 5, 2025 · 1 comment
Open

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

xrmx opened this issue Feb 5, 2025 · 1 comment

Comments

@xrmx
Copy link
Contributor

xrmx commented Feb 5, 2025

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

@lmolkova
Copy link
Contributor

lmolkova commented Feb 6, 2025

Related #1851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants