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

Update LLM event attributes #2460

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented Feb 24, 2024

The specification has changed since we initially created LLM events.
This PR updates the attributes to reflect the current spec.

Removes:
api_key_last_four_digits
transaction_id

Adds:
assertion for request.temperature

Closes #2459

The specification has changed since we initially created LLM events.
This PR updates the attributes to reflect the current spec.

Removes:
api_key_last_four_digits
transaction_id

Adds:
assertion for request.temperature
@kaylareopelle kaylareopelle changed the title Remove api_key_last_four_digits from LLM events Update LLM event attributes Feb 24, 2024
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.7% 93%
Branch 71.36% 71%

assert_equal '789', attributes['request_id']
assert_equal 25, attributes['conversation_id'] # needs to be removed, see #2437
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for this comment ◡̈

Copy link
Contributor

@hannahramadan hannahramadan left a comment

Choose a reason for hiding this comment

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

LGTM!

@kaylareopelle kaylareopelle linked an issue Feb 26, 2024 that may be closed by this pull request
@kaylareopelle kaylareopelle merged commit 035e027 into openai_instrumentation Feb 26, 2024
28 checks passed
@kaylareopelle kaylareopelle deleted the remove_api_key_attr branch February 26, 2024 23:45
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.

Update LLM event attributes
2 participants