Skip to content

Commit 5bb2f37

Browse files
authored
fix: Open AI version 1.0.0 dropped support for APIs in use, so pinning the version. (#4196)
1 parent a40cff4 commit 5bb2f37

File tree

3 files changed

+54
-71
lines changed

3 files changed

+54
-71
lines changed

requirements/constraints.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ django-debug-toolbar < 4.2.0
5151

5252
# selenium==4.13.0 causing test failures
5353
selenium==4.12.0
54+
55+
# Open AI version 1.0.0 dropped support for openai.ChatCompletion which is currently in use in enterprise.
56+
openai<=0.28.1

requirements/local.txt

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#
77
accessible-pygments==0.0.4
88
# via pydata-sphinx-theme
9+
aiohttp==3.9.1
10+
# via openai
11+
aiosignal==1.3.1
12+
# via aiohttp
913
alabaster==0.7.13
1014
# via sphinx
1115
algoliasearch==1.20.0
@@ -19,12 +23,6 @@ algoliasearch-django==1.7.3
1923
# -r requirements/base.in
2024
amqp==5.2.0
2125
# via kombu
22-
annotated-types==0.6.0
23-
# via pydantic
24-
anyio==3.7.1
25-
# via
26-
# httpx
27-
# openai
2826
asgiref==3.7.2
2927
# via
3028
# django
@@ -37,9 +35,12 @@ astroid==3.0.1
3735
# pylint
3836
# pylint-celery
3937
async-timeout==4.0.3
40-
# via redis
38+
# via
39+
# aiohttp
40+
# redis
4141
attrs==21.4.0
4242
# via
43+
# aiohttp
4344
# glom
4445
# jsonschema
4546
# openedx-events
@@ -98,8 +99,6 @@ celery==5.3.5
9899
certifi==2023.11.17
99100
# via
100101
# elasticsearch
101-
# httpcore
102-
# httpx
103102
# requests
104103
# selenium
105104
# snowflake-connector-python
@@ -175,9 +174,7 @@ dill==0.3.7
175174
distlib==0.3.7
176175
# via virtualenv
177176
distro==1.8.0
178-
# via
179-
# docker-compose
180-
# openai
177+
# via docker-compose
181178
# via
182179
# -c requirements/constraints.txt
183180
# -r requirements/base.in
@@ -431,7 +428,6 @@ elasticsearch-dsl==7.4.1
431428
# django-elasticsearch-dsl-drf
432429
exceptiongroup==1.1.3
433430
# via
434-
# anyio
435431
# pytest
436432
# trio
437433
# trio-websocket
@@ -452,6 +448,10 @@ filelock==3.13.1
452448
# virtualenv
453449
freezegun==1.2.2
454450
# via -r requirements/test.in
451+
frozenlist==1.4.0
452+
# via
453+
# aiohttp
454+
# aiosignal
455455
getsmarter-api-clients==0.6.1
456456
# via -r requirements/base.in
457457
glom==22.1.0
@@ -478,26 +478,19 @@ googleapis-common-protos==1.61.0
478478
gspread==5.12.0
479479
# via -r requirements/base.in
480480
h11==0.14.0
481-
# via
482-
# httpcore
483-
# wsproto
481+
# via wsproto
484482
html2text==2020.1.16
485483
# via -r requirements/base.in
486-
httpcore==1.0.2
487-
# via httpx
488484
httplib2==0.22.0
489485
# via
490486
# google-api-python-client
491487
# google-auth-httplib2
492-
httpx==0.25.1
493-
# via openai
494488
idna==3.4
495489
# via
496-
# anyio
497-
# httpx
498490
# requests
499491
# snowflake-connector-python
500492
# trio
493+
# yarl
501494
imagesize==1.4.1
502495
# via sphinx
503496
importlib-metadata==6.8.0
@@ -548,6 +541,10 @@ mock==5.1.0
548541
# via -r requirements/test.in
549542
more-itertools==10.1.0
550543
# via simple-salesforce
544+
multidict==6.0.4
545+
# via
546+
# aiohttp
547+
# yarl
551548
mysqlclient==2.2.0
552549
# via -r requirements/test.in
553550
newrelic==9.2.0
@@ -557,8 +554,10 @@ oauthlib==3.2.2
557554
# getsmarter-api-clients
558555
# requests-oauthlib
559556
# social-auth-core
560-
openai==1.3.3
561-
# via taxonomy-connector
557+
openai==0.28.1
558+
# via
559+
# -c requirements/constraints.txt
560+
# taxonomy-connector
562561
openedx-atlas==0.5.0
563562
# via -r requirements/base.in
564563
openedx-events==9.2.0
@@ -630,10 +629,6 @@ pycountry==22.3.5
630629
# via -r requirements/base.in
631630
pycparser==2.21
632631
# via cffi
633-
pydantic==2.5.1
634-
# via openai
635-
pydantic-core==2.14.3
636-
# via pydantic
637632
pydata-sphinx-theme==0.14.3
638633
# via sphinx-book-theme
639634
pygments==2.17.1
@@ -771,6 +766,7 @@ requests==2.31.0
771766
# edx-drf-extensions
772767
# edx-rest-api-client
773768
# google-api-core
769+
# openai
774770
# requests-file
775771
# requests-oauthlib
776772
# requests-toolbelt
@@ -840,10 +836,7 @@ six==1.16.0
840836
slumber==0.7.1
841837
# via edx-rest-api-client
842838
sniffio==1.3.0
843-
# via
844-
# anyio
845-
# httpx
846-
# trio
839+
# via trio
847840
snowballstemmer==2.2.0
848841
# via sphinx
849842
snowflake-connector-python==3.5.0
@@ -928,16 +921,12 @@ trio-websocket==0.11.1
928921
# via selenium
929922
typing-extensions==4.8.0
930923
# via
931-
# annotated-types
932924
# asgiref
933925
# astroid
934926
# django-countries
935927
# edx-opaque-keys
936928
# faker
937929
# kombu
938-
# openai
939-
# pydantic
940-
# pydantic-core
941930
# pydata-sphinx-theme
942931
# pylint
943932
# semgrep
@@ -989,6 +978,8 @@ wsproto==1.2.0
989978
# via trio-websocket
990979
xss-utils==0.5.0
991980
# via -r requirements/base.in
981+
yarl==1.9.3
982+
# via aiohttp
992983
zeep==4.2.1
993984
# via simple-salesforce
994985
zipp==3.17.0

requirements/production.txt

Lines changed: 24 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#
55
# pip-compile --output-file=requirements/production.txt requirements/production.in
66
#
7+
aiohttp==3.9.1
8+
# via openai
9+
aiosignal==1.3.1
10+
# via aiohttp
711
algoliasearch==1.20.0
812
# via
913
# -c requirements/constraints.txt
@@ -15,12 +19,6 @@ algoliasearch-django==1.7.3
1519
# -r requirements/base.in
1620
amqp==5.2.0
1721
# via kombu
18-
annotated-types==0.6.0
19-
# via pydantic
20-
anyio==3.7.1
21-
# via
22-
# httpx
23-
# openai
2422
asgiref==3.7.2
2523
# via
2624
# django
@@ -29,9 +27,12 @@ asgiref==3.7.2
2927
asn1crypto==1.5.1
3028
# via snowflake-connector-python
3129
async-timeout==4.0.3
32-
# via redis
30+
# via
31+
# aiohttp
32+
# redis
3333
attrs==23.1.0
3434
# via
35+
# aiohttp
3536
# openedx-events
3637
# zeep
3738
backoff==2.2.1
@@ -70,8 +71,6 @@ certifi==2023.11.17
7071
# via
7172
# -r requirements/production.in
7273
# elasticsearch
73-
# httpcore
74-
# httpx
7574
# requests
7675
# snowflake-connector-python
7776
cffi==1.16.0
@@ -117,8 +116,6 @@ defusedxml==0.7.1
117116
# djangorestframework-xml
118117
# python3-openid
119118
# social-auth-core
120-
distro==1.8.0
121-
# via openai
122119
django==4.2.7
123120
# via
124121
# -c requirements/constraints.txt
@@ -346,12 +343,14 @@ elasticsearch-dsl==7.4.1
346343
# -r requirements/base.in
347344
# django-elasticsearch-dsl
348345
# django-elasticsearch-dsl-drf
349-
exceptiongroup==1.1.3
350-
# via anyio
351346
fastavro==1.9.0
352347
# via openedx-events
353348
filelock==3.13.1
354349
# via snowflake-connector-python
350+
frozenlist==1.4.0
351+
# via
352+
# aiohttp
353+
# aiosignal
355354
getsmarter-api-clients==0.6.1
356355
# via -r requirements/base.in
357356
gevent==23.9.1
@@ -381,24 +380,17 @@ gspread==5.12.0
381380
# via -r requirements/base.in
382381
gunicorn==21.2.0
383382
# via -r requirements/production.in
384-
h11==0.14.0
385-
# via httpcore
386383
html2text==2020.1.16
387384
# via -r requirements/base.in
388-
httpcore==1.0.2
389-
# via httpx
390385
httplib2==0.22.0
391386
# via
392387
# google-api-python-client
393388
# google-auth-httplib2
394-
httpx==0.25.1
395-
# via openai
396389
idna==3.4
397390
# via
398-
# anyio
399-
# httpx
400391
# requests
401392
# snowflake-connector-python
393+
# yarl
402394
importlib-metadata==6.8.0
403395
# via
404396
# -r requirements/base.in
@@ -429,6 +421,10 @@ markupsafe==2.1.3
429421
# via jinja2
430422
more-itertools==10.1.0
431423
# via simple-salesforce
424+
multidict==6.0.4
425+
# via
426+
# aiohttp
427+
# yarl
432428
mysqlclient==2.2.0
433429
# via -r requirements/production.in
434430
newrelic==9.2.0
@@ -440,8 +436,10 @@ oauthlib==3.2.2
440436
# getsmarter-api-clients
441437
# requests-oauthlib
442438
# social-auth-core
443-
openai==1.3.3
444-
# via taxonomy-connector
439+
openai==0.28.1
440+
# via
441+
# -c requirements/constraints.txt
442+
# taxonomy-connector
445443
openedx-atlas==0.5.0
446444
# via -r requirements/base.in
447445
openedx-events==9.2.0
@@ -488,10 +486,6 @@ pycountry==22.3.5
488486
# via -r requirements/base.in
489487
pycparser==2.21
490488
# via cffi
491-
pydantic==2.5.1
492-
# via openai
493-
pydantic-core==2.14.3
494-
# via pydantic
495489
pyjwt[crypto]==2.8.0
496490
# via
497491
# drf-jwt
@@ -565,6 +559,7 @@ requests==2.31.0
565559
# edx-drf-extensions
566560
# edx-rest-api-client
567561
# google-api-core
562+
# openai
568563
# requests-file
569564
# requests-oauthlib
570565
# requests-toolbelt
@@ -610,10 +605,6 @@ six==1.16.0
610605
# requests-file
611606
slumber==0.7.1
612607
# via edx-rest-api-client
613-
sniffio==1.3.0
614-
# via
615-
# anyio
616-
# httpx
617608
snowflake-connector-python==3.5.0
618609
# via -r requirements/base.in
619610
social-auth-app-django==5.4.0
@@ -649,14 +640,10 @@ tqdm==4.66.1
649640
# via openai
650641
typing-extensions==4.8.0
651642
# via
652-
# annotated-types
653643
# asgiref
654644
# django-countries
655645
# edx-opaque-keys
656646
# kombu
657-
# openai
658-
# pydantic
659-
# pydantic-core
660647
# snowflake-connector-python
661648
tzdata==2023.3
662649
# via
@@ -689,6 +676,8 @@ webencodings==0.5.1
689676
# tinycss2
690677
xss-utils==0.5.0
691678
# via -r requirements/base.in
679+
yarl==1.9.3
680+
# via aiohttp
692681
zeep==4.2.1
693682
# via simple-salesforce
694683
zipp==3.17.0

0 commit comments

Comments
 (0)