Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def _set_response_attributes(
if getattr(result, "service_tier", None):
set_span_attribute(
span,
GenAIAttributes.GEN_AI_OPENAI_REQUEST_SERVICE_TIER,
GenAIAttributes.GEN_AI_OPENAI_RESPONSE_SERVICE_TIER,
result.service_tier,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def get_llm_request_attributes(
] = response_format

service_tier = kwargs.get("service_tier")
attributes[GenAIAttributes.GEN_AI_OPENAI_RESPONSE_SERVICE_TIER] = (
attributes[GenAIAttributes.GEN_AI_OPENAI_REQUEST_SERVICE_TIER] = (
service_tier if service_tier != "auto" else None
)

Expand Down
Loading