mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
fix: remove duplicate gen_ai.response.finish_reasons block
This commit is contained in:
parent
466b4ddae3
commit
9928618788
1 changed files with 0 additions and 9 deletions
|
|
@ -1824,15 +1824,6 @@ class OpenTelemetry(CustomLogger):
|
|||
value=safe_dumps([status]),
|
||||
)
|
||||
|
||||
# Extract finish reason from ResponsesAPIResponse.status
|
||||
status = response_obj.get("status")
|
||||
if status:
|
||||
self.safe_set_attribute(
|
||||
span=span,
|
||||
key=SpanAttributes.GEN_AI_RESPONSE_FINISH_REASONS.value,
|
||||
value=safe_dumps([status]),
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
self.handle_callback_failure(
|
||||
callback_name=self.callback_name or "opentelemetry"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue