Skip to content

Commit e0fdbcf

Browse files
committed
cleanup
1 parent 1a1aa26 commit e0fdbcf

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

sentry_sdk/integrations/openai_agents/utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ def _capture_exception(exc):
3131
sentry_sdk.capture_event(event, hint=hint)
3232

3333

34-
def _usage_to_str(usage):
35-
# type: (Usage) -> str
36-
return (
37-
f"{usage.requests} requests, "
38-
f"{usage.input_tokens} input tokens, "
39-
f"{usage.output_tokens} output tokens, "
40-
f"{usage.total_tokens} total tokens"
41-
)
42-
43-
4434
def _get_start_span_function():
4535
# type: () -> Callable
4636
current_span = sentry_sdk.get_current_span()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pytest
2+
3+
pytest.importorskip("openai-agents")

0 commit comments

Comments
 (0)