chore(openai): use SpanAttributes.EMBEDDING_INVOCATION_PARAMETERS #2431
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove hardcoded constant and outdated TODO comment. Use the official SpanAttributes.EMBEDDING_INVOCATION_PARAMETERS constant that was released in semantic conventions v0.1.25.
Bump openinference-semantic-conventions from >=0.1.23 to >=0.1.25.
Note
Serialize non-string tool/function outputs to JSON for agents and switch embeddings attribute to the official SpanAttributes constant, with dependency bump and minor mypy config tweak.
outputvalues forcustom_tool_call_outputandfunction_call_output; skip emitting content whenoutputisNone.warn_unused_ignoresdue to OpenAI type version differences.SpanAttributes.EMBEDDING_INVOCATION_PARAMETERS.openinference-semantic-conventionsto>=0.1.25.Written by Cursor Bugbot for commit 87bdaa8. This will update automatically on new commits. Configure here.