Skip to content

Conversation

estolfo
Copy link
Contributor

@estolfo estolfo commented Apr 9, 2025

What does this pull request do?

Set span attribute gen_ai.request.choice.count for openai instrumentation. Corresponds to the n argument in the chat completions API.

Related issues

Closes #60

@estolfo estolfo requested a review from SrdjanLL April 9, 2025 13:29
@estolfo estolfo requested review from SrdjanLL and xrmx April 11, 2025 13:12
…ests/test_chat_completions.py

Co-authored-by: Riccardo Magliocchetti <[email protected]>
@estolfo estolfo merged commit 9e9314d into elastic:main Apr 11, 2025
14 checks passed
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.

openai: semconv 1.31.0 gen_ai.request.choice.count

3 participants