Repository navigation
Commit 5aae390
feat(openai)!: drop support for OpenAI SDK versions below 1.0 (#1928)
* chore!: require Python 3.11 or newer
Python 3.10 reaches end of life in October 2026. Raise requires-python
to >=3.11, target py311 in ruff, drop 3.10 from the CI unit matrix, and
remove the pre-3.11 fallbacks for asyncio.create_task(context=...) and
typing.NotRequired.
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* feat(openai)!: drop support for OpenAI SDK versions below 1.0
The OpenAI integration now always uses the v1 client shapes. Remove the
pre-1.0 method definitions and every _is_openai_v1() branch, and raise
the dev dependency floor to openai>=1.0.0.
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* fix(observe): keep detecting legacy-marked coroutine functions
inspect.iscoroutinefunction ignores asyncio's _is_coroutine marker,
which asgiref's markcoroutinefunction sets on Python < 3.12. Accept
both so such functions keep the async wrapper and their observation
ends after the coroutine runs.
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>1 parent 41617eb commit 5aae390
3 files changed
Lines changed: 14 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 83 | | |
102 | 84 | | |
103 | 85 | | |
| |||
798 | 780 | | |
799 | 781 | | |
800 | 782 | | |
801 | | - | |
802 | | - | |
| 783 | + | |
803 | 784 | | |
804 | 785 | | |
805 | 786 | | |
| |||
810 | 791 | | |
811 | 792 | | |
812 | 793 | | |
813 | | - | |
814 | | - | |
| 794 | + | |
815 | 795 | | |
816 | 796 | | |
817 | 797 | | |
818 | 798 | | |
819 | 799 | | |
820 | 800 | | |
821 | | - | |
| 801 | + | |
822 | 802 | | |
823 | 803 | | |
824 | 804 | | |
| |||
956 | 936 | | |
957 | 937 | | |
958 | 938 | | |
959 | | - | |
| 939 | + | |
960 | 940 | | |
961 | 941 | | |
962 | 942 | | |
| |||
968 | 948 | | |
969 | 949 | | |
970 | 950 | | |
971 | | - | |
972 | | - | |
973 | 951 | | |
974 | 952 | | |
975 | 953 | | |
976 | 954 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
| 955 | + | |
982 | 956 | | |
983 | 957 | | |
984 | 958 | | |
| |||
1015 | 989 | | |
1016 | 990 | | |
1017 | 991 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | 992 | | |
1023 | 993 | | |
1024 | 994 | | |
1025 | 995 | | |
1026 | | - | |
1027 | | - | |
| 996 | + | |
| 997 | + | |
1028 | 998 | | |
1029 | 999 | | |
1030 | 1000 | | |
| |||
1034 | 1004 | | |
1035 | 1005 | | |
1036 | 1006 | | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | 1007 | | |
1041 | 1008 | | |
1042 | 1009 | | |
| |||
1318 | 1285 | | |
1319 | 1286 | | |
1320 | 1287 | | |
1321 | | - | |
| 1288 | + | |
1322 | 1289 | | |
1323 | 1290 | | |
1324 | 1291 | | |
| |||
1338 | 1305 | | |
1339 | 1306 | | |
1340 | 1307 | | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
| 1308 | + | |
1344 | 1309 | | |
1345 | 1310 | | |
1346 | 1311 | | |
| |||
1407 | 1372 | | |
1408 | 1373 | | |
1409 | 1374 | | |
1410 | | - | |
| 1375 | + | |
1411 | 1376 | | |
1412 | 1377 | | |
1413 | 1378 | | |
| |||
1427 | 1392 | | |
1428 | 1393 | | |
1429 | 1394 | | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
| 1395 | + | |
1433 | 1396 | | |
1434 | 1397 | | |
1435 | 1398 | | |
| |||
1460 | 1423 | | |
1461 | 1424 | | |
1462 | 1425 | | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
| 1426 | + | |
1466 | 1427 | | |
1467 | 1428 | | |
1468 | 1429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments