This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 65ed68706d3 Migrate openai provider to use
airflow.sdk.configuration.conf (#59996)
65ed68706d3 is described below
commit 65ed68706d324ec84fedccde74bb2daab8d036d0
Author: Ankit Chaurasia <[email protected]>
AuthorDate: Thu Jan 1 05:21:42 2026 +0545
Migrate openai provider to use airflow.sdk.configuration.conf (#59996)
---
providers/openai/pyproject.toml | 2 +-
providers/openai/src/airflow/providers/openai/operators/openai.py | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/providers/openai/pyproject.toml b/providers/openai/pyproject.toml
index 07922d599ba..2cb41064bf2 100644
--- a/providers/openai/pyproject.toml
+++ b/providers/openai/pyproject.toml
@@ -59,7 +59,7 @@ requires-python = ">=3.10"
# After you modify the dependencies, and rebuild your Breeze CI image with
``breeze ci-image build``
dependencies = [
"apache-airflow>=2.11.0",
- "apache-airflow-providers-common-compat>=1.10.1",
+ "apache-airflow-providers-common-compat>=1.10.1", # use next version
"openai[datalib]>=1.66.0",
]
diff --git a/providers/openai/src/airflow/providers/openai/operators/openai.py
b/providers/openai/src/airflow/providers/openai/operators/openai.py
index 9479335b7d7..574d7fb85d8 100644
--- a/providers/openai/src/airflow/providers/openai/operators/openai.py
+++ b/providers/openai/src/airflow/providers/openai/operators/openai.py
@@ -22,8 +22,7 @@ from collections.abc import Sequence
from functools import cached_property
from typing import TYPE_CHECKING, Any, Literal
-from airflow.configuration import conf
-from airflow.providers.common.compat.sdk import BaseOperator
+from airflow.providers.common.compat.sdk import BaseOperator, conf
from airflow.providers.openai.exceptions import OpenAIBatchJobException
from airflow.providers.openai.hooks.openai import OpenAIHook
from airflow.providers.openai.triggers.openai import OpenAIBatchTrigger