Commit 3eac23c
authored
fix(integrations): openai-agents fix multi-patching of
### Description
When passing in an explicit model instance instead of a string the model
was patched multiple times event if it was already patched before. This
PR prohibits that.
#### Issues
Contributes to:
https://linear.app/getsentry/issue/TET-1511/openai-agents-double-span-reportingget_model function (#5195)1 parent 9b80198 commit 3eac23c
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments