We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81aa20 commit c7ee495Copy full SHA for c7ee495
sentry_sdk/integrations/openai_agents/__init__.py
@@ -48,7 +48,7 @@ def _patch_agent_runner_get_model() -> None:
48
)
49
50
51
-def _patch_run_internal_get_model():
+def _patch_run_internal_get_model() -> None:
52
agents.run_internal.run_loop.get_model = _create_run_internal_get_model_wrapper(
53
turn_preparation.get_model
54
@@ -83,7 +83,8 @@ def setup_once() -> None:
83
agents.run.DEFAULT_AGENT_RUNNER.run_streamed
84
85
86
- if parse_version(OPENAI_AGENTS_VERSION) >= (
+ library_version = parse_version(OPENAI_AGENTS_VERSION)
87
+ if library_version is not None and library_version >= (
88
0,
89
8,
90
):
0 commit comments