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

Configuration option: ai_monitoring.record_content.enabled #2482

Merged

Conversation

hannahramadan
Copy link
Contributor

@hannahramadan hannahramadan commented Mar 5, 2024

Introduces a new configuration option, ai_monitoring.record_content.enabled, that when disabled, the agent removes certain content before sending LLM events, specifically:

  • LlmChatCompletionMessage event content attribute
  • LlmEmbedding event, input attribute

name: ai_monitoring.record_content.enabled
default: true

Spec (Internal)

Note per the spec, the following should also be removed (we aren't recording these as of now—noting here for completness):

  • LlmTool event input attribute
  • LlmTool event output attribute
  • LlmVectorSearch request.query input attribute
  • LlmVectorSearchResult page_content input attribute

closes #2452

@hannahramadan hannahramadan marked this pull request as ready for review March 5, 2024 17:52
Copy link
Contributor

github-actions bot commented Mar 8, 2024

SimpleCov Report

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

@hannahramadan hannahramadan merged commit d7905ff into openai_instrumentation Mar 8, 2024
28 checks passed
@hannahramadan hannahramadan deleted the config_ai_monitoring_record_content branch April 12, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants