Skip to content

Conversation

@xrmx
Copy link
Contributor

@xrmx xrmx commented Dec 12, 2025

Description

Add a couple of new entries to chat operations span attributes to trace the choice count (from n) and the stop sequences (from stop).

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@xrmx xrmx added the gen-ai Related to generative AI label Dec 12, 2025
)

if (choice_count := kwargs.get("n")) is not None:
if isinstance(choice_count, int) and choice_count != 1:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if isinstance(choice_count, int) and choice_count != 1:
# Only add non default, meaningful values
if isinstance(choice_count, int) and choice_count != 1:

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

Labels

gen-ai Related to generative AI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants