We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1aa26 commit e0fdbcfCopy full SHA for e0fdbcf
sentry_sdk/integrations/openai_agents/utils.py
@@ -31,16 +31,6 @@ def _capture_exception(exc):
31
sentry_sdk.capture_event(event, hint=hint)
32
33
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
44
def _get_start_span_function():
45
# type: () -> Callable
46
current_span = sentry_sdk.get_current_span()
tests/integrations/openai_agents/__init__.py
@@ -0,0 +1,3 @@
1
+import pytest
2
+
3
+pytest.importorskip("openai-agents")
0 commit comments