Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/openai/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PIP package Version required
========================================== ==================
``apache-airflow`` ``>=2.11.0``
``apache-airflow-providers-common-compat`` ``>=1.12.0``
``openai[datalib]`` ``>=2.37.0``
``openai`` ``>=2.37.0``
========================================== ==================

The changelog for the provider package can be found in the
Expand Down
17 changes: 17 additions & 0 deletions providers/openai/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@
Changelog
---------

.. Behavior note

The ``[datalib]`` extra of the ``openai`` SDK is no longer part of this
provider's base install. That extra existed to support the SDK's legacy
``openai tools fine_tunes.prepare_data`` CLI (removed in openai 1.x) and
transitively pulled in ``numpy``, ``pandas``, and ``pandas-stubs`` for every
provider user. None of these packages are imported by the provider's
source, tests, or example DAGs, so the extra was pure transitive bloat.

Users whose DAG code relied on ``numpy`` or ``pandas`` being installed as a
side-effect of installing this provider should declare those packages
explicitly, or install the SDK extra directly:

.. code-block:: bash

pip install 'openai[datalib]'

1.7.5
.....

Expand Down
2 changes: 1 addition & 1 deletion providers/openai/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ PIP package Version required
========================================== ==================
``apache-airflow`` ``>=2.11.0``
``apache-airflow-providers-common-compat`` ``>=1.12.0``
``openai[datalib]`` ``>=2.37.0``
``openai`` ``>=2.37.0``
========================================== ==================

Downloading official packages
Expand Down
8 changes: 7 additions & 1 deletion providers/openai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ requires-python = ">=3.10"
dependencies = [
"apache-airflow>=2.11.0",
"apache-airflow-providers-common-compat>=1.12.0",
"openai[datalib]>=2.37.0",
# The ``[datalib]`` extra of the ``openai`` SDK pulls in numpy / pandas /
# pandas-stubs. It was historically used by the SDK's legacy
# ``openai tools fine_tunes.prepare_data`` CLI, which was removed in
# openai 1.x. Nothing in this provider (source, tests, example DAGs, or
# cross-provider example DAGs) uses pandas or numpy, so ``[datalib]`` is
# pure transitive bloat here and is not required at runtime.
"openai>=2.37.0",
]

[dependency-groups]
Expand Down