Skip to content

Commit 4797a9c

Browse files
committed
discard cohere chunk event completion
1 parent 8fa1b28 commit 4797a9c

File tree

1 file changed

+0
-6
lines changed
  • src/langtrace_python_sdk/instrumentation/cohere

1 file changed

+0
-6
lines changed

src/langtrace_python_sdk/instrumentation/cohere/patch.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,6 @@ def traced_method(wrapped, instance, args, kwargs):
410410
span.add_event(Event.STREAM_START.value)
411411
try:
412412
for event in result:
413-
if hasattr(event, "text") and event.text is not None:
414-
content = event.text
415-
else:
416-
content = ""
417-
set_event_completion_chunk(span, "".join(content))
418-
419413
if (
420414
hasattr(event, "finish_reason")
421415
and event.finish_reason == "COMPLETE"

0 commit comments

Comments
 (0)