This is an automated email from the ASF dual-hosted git repository.
kaxil 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 87ce5cf5b09 Update deprecated default models in openai and `common.ai`
providers (#77266)
87ce5cf5b09 is described below
commit 87ce5cf5b0907fc1e4225d00a8aa1e8a815ebe4f
Author: Utkarsh Sahay <[email protected]>
AuthorDate: Fri Nov 20 05:41:45 2026 +0530
Update deprecated default models in openai and `common.ai` providers
(#77266)
---
providers/common/ai/docs/connections/langchain.rst | 4 ++--
providers/common/ai/docs/connections/llamaindex.rst | 6 +++---
providers/common/ai/docs/connections/pydantic_ai.rst | 12 ++++++------
providers/common/ai/docs/connections/pydantic_ai_azure.rst | 4 ++--
providers/common/ai/docs/frameworks/openai_agents.rst | 10 +++++-----
providers/common/ai/docs/hooks/langchain.rst | 6 +++---
providers/common/ai/docs/hooks/llamaindex.rst | 4 ++--
providers/common/ai/docs/hooks/pydantic_ai.rst | 2 +-
providers/common/ai/docs/installation.rst | 2 +-
providers/common/ai/docs/local_development.rst | 4 ++--
providers/common/ai/docs/operators/agent.rst | 6 +++---
providers/common/ai/docs/operators/llm.rst | 2 +-
providers/common/ai/docs/operators/llm_batch.rst | 2 +-
providers/common/ai/docs/operators/llm_branch.rst | 2 +-
providers/common/ai/docs/operators/llm_file_analysis.rst | 2 +-
providers/common/ai/docs/operators/llm_schema_compare.rst | 2 +-
providers/common/ai/docs/provider_fallback.rst | 8 ++++----
providers/common/ai/docs/quickstart.rst | 4 ++--
providers/common/ai/docs/retry_policies.rst | 2 +-
providers/common/ai/docs/toolsets/logging.rst | 2 +-
providers/common/ai/docs/troubleshooting.rst | 4 ++--
providers/common/ai/docs/why_common_ai.rst | 2 +-
providers/common/ai/provider.yaml | 12 ++++++------
.../common/ai/src/airflow/providers/common/ai/batch/base.py | 2 +-
.../ai/src/airflow/providers/common/ai/batch/dispatch.py | 6 +++---
.../src/airflow/providers/common/ai/decorators/llm_batch.py | 4 ++--
.../ai/src/airflow/providers/common/ai/durable/capability.py | 2 +-
.../common/ai/example_dags/example_agent_recovery.py | 2 +-
.../providers/common/ai/example_dags/example_agent_spec.yaml | 2 +-
.../common/ai/example_dags/example_langchain_hook.py | 6 +++---
.../common/ai/example_dags/example_langchain_tool_agent.py | 2 +-
.../ai/example_dags/example_langchain_toolset_bridge.py | 2 +-
.../providers/common/ai/example_dags/example_llm_batch.py | 6 +++---
.../providers/common/ai/example_dags/example_llm_fallback.py | 4 ++--
.../ai/src/airflow/providers/common/ai/get_provider_info.py | 12 ++++++------
.../ai/src/airflow/providers/common/ai/hooks/langchain.py | 8 ++++----
.../ai/src/airflow/providers/common/ai/hooks/llamaindex.py | 6 +++---
.../ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py | 10 +++++-----
.../ai/src/airflow/providers/common/ai/operators/agent.py | 2 +-
.../ai/src/airflow/providers/common/ai/operators/llm.py | 2 +-
.../src/airflow/providers/common/ai/operators/llm_batch.py | 2 +-
.../src/airflow/providers/common/ai/operators/llm_branch.py | 2 +-
.../providers/common/ai/operators/llm_file_analysis.py | 2 +-
.../providers/common/ai/operators/llm_schema_compare.py | 2 +-
.../ai/src/airflow/providers/common/ai/operators/llm_sql.py | 2 +-
.../ai/src/airflow/providers/common/ai/policies/retry.py | 2 +-
providers/openai/docs/operators/openai.rst | 7 ++++---
.../openai/src/airflow/providers/openai/hooks/openai.py | 10 +++++-----
.../openai/src/airflow/providers/openai/operators/openai.py | 2 +-
.../tests/system/openai/example_trigger_batch_operator.py | 2 +-
providers/openai/tests/unit/openai/operators/test_openai.py | 2 +-
51 files changed, 109 insertions(+), 108 deletions(-)
diff --git a/providers/common/ai/docs/connections/langchain.rst
b/providers/common/ai/docs/connections/langchain.rst
index 4abd2de4293..55bbe360253 100644
--- a/providers/common/ai/docs/connections/langchain.rst
+++ b/providers/common/ai/docs/connections/langchain.rst
@@ -41,7 +41,7 @@ Configuring the Connection
Chat Model (Extra field)
Chat model identifier in ``provider:name`` format, dispatched via
- ``langchain.chat_models.init_chat_model`` (e.g. ``openai:gpt-5``,
+ ``langchain.chat_models.init_chat_model`` (e.g. ``openai:gpt-6.1-sol``,
``anthropic:claude-sonnet-5``). This field appears as a dedicated input
in the connection form (via ``conn-fields``) and stores its value in
``extra["model"]``.
@@ -98,7 +98,7 @@ Examples
{
"conn_type": "langchain",
"password": "sk-...",
- "extra": "{\"model\": \"openai:gpt-5\", \"embed_model\":
\"openai:text-embedding-3-small\"}"
+ "extra": "{\"model\": \"openai:gpt-6.1-sol\", \"embed_model\":
\"openai:text-embedding-3-small\"}"
}
**Anthropic (chat only)**
diff --git a/providers/common/ai/docs/connections/llamaindex.rst
b/providers/common/ai/docs/connections/llamaindex.rst
index 2b89a4689fb..b5d46befe05 100644
--- a/providers/common/ai/docs/connections/llamaindex.rst
+++ b/providers/common/ai/docs/connections/llamaindex.rst
@@ -44,7 +44,7 @@ Embedding Model (Extra field)
(via ``conn-fields``) and stores its value in ``extra["embed_model"]``.
LLM Model (Extra field)
- Default LlamaIndex LLM model name (e.g. ``gpt-5``). This field appears
+ Default LlamaIndex LLM model name (e.g. ``gpt-6.1-sol``). This field
appears
as a dedicated input in the connection form (via ``conn-fields``) and
stores its value in ``extra["llm_model"]``.
@@ -93,7 +93,7 @@ Examples
{
"conn_type": "llamaindex",
"password": "sk-...",
- "extra": "{\"embed_model\": \"text-embedding-3-small\", \"llm_model\":
\"gpt-5\"}"
+ "extra": "{\"embed_model\": \"text-embedding-3-small\", \"llm_model\":
\"gpt-6.1-sol\"}"
}
**LLM only (embeddings unset)**
@@ -103,5 +103,5 @@ Examples
{
"conn_type": "llamaindex",
"password": "sk-...",
- "extra": "{\"llm_model\": \"gpt-5\"}"
+ "extra": "{\"llm_model\": \"gpt-6.1-sol\"}"
}
diff --git a/providers/common/ai/docs/connections/pydantic_ai.rst
b/providers/common/ai/docs/connections/pydantic_ai.rst
index 7ae9250a64d..dd18ce5aa81 100644
--- a/providers/common/ai/docs/connections/pydantic_ai.rst
+++ b/providers/common/ai/docs/connections/pydantic_ai.rst
@@ -40,10 +40,10 @@ Model
Without Default Model Provider (below), the ``provider:`` prefix is
required
here: this generic connection type has no platform of its own (unlike the
- vendor connection types below), so a bare name (e.g. ``gpt-5`` without
+ vendor connection types below), so a bare name (e.g. ``gpt-6.1-sol``
without
``openai:``) raises ``ValueError`` naming this connection.
- Examples: ``openai:gpt-5``, ``anthropic:claude-sonnet-5``,
+ Examples: ``openai:gpt-6.1-sol``, ``anthropic:claude-sonnet-5``,
``bedrock:us.anthropic.claude-opus-4-6-v1:0``, ``google:gemini-2.5-flash``
See `Anthropic's models overview
<https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison>`__
@@ -79,7 +79,7 @@ Extra (JSON, optional)
.. code-block:: json
- {"model": "openai:gpt-5"}
+ {"model": "openai:gpt-6.1-sol"}
When using the UI, the "Model" field above writes to this same location
automatically.
@@ -88,7 +88,7 @@ Default Model Provider
The pydantic-ai provider to prefix a bare model name with, e.g.
``openai-chat``. Stored in ``extra["model_provider"]``. With it set,
``model_id``
and the Model field can name a model the way the endpoint does (e.g.
- ``claude-sonnet-4-5`` instead of ``openai-chat:claude-sonnet-4-5``). A name
+ ``claude-sonnet-5-5`` instead of ``openai-chat:claude-sonnet-5-5``). A name
that already starts with a provider pydantic-ai recognizes is used as is.
An unknown provider raises ``ValueError`` when the model is resolved.
``@task.llm_batch`` applies it the same way, and sends ``openai-chat``
models
@@ -117,7 +117,7 @@ OpenAI
{
"conn_type": "pydanticai",
"password": "sk-...",
- "extra": "{\"model\": \"openai:gpt-5\"}"
+ "extra": "{\"model\": \"openai:gpt-6.1-sol\"}"
}
.. _conn-example-anthropic:
@@ -167,7 +167,7 @@ gateway's own model names:
.. code-block:: python
- @task.llm(llm_conn_id="my_gateway", model_id="claude-sonnet-4-5")
+ @task.llm(llm_conn_id="my_gateway", model_id="claude-sonnet-5-5")
def summarize(text: str) -> str:
return f"Summarize: {text}"
diff --git a/providers/common/ai/docs/connections/pydantic_ai_azure.rst
b/providers/common/ai/docs/connections/pydantic_ai_azure.rst
index d26c416bca8..53ddff745ee 100644
--- a/providers/common/ai/docs/connections/pydantic_ai_azure.rst
+++ b/providers/common/ai/docs/connections/pydantic_ai_azure.rst
@@ -44,7 +44,7 @@ Configuring the Connection
--------------------------
Model
- Azure model identifier (e.g. ``azure:gpt-5``, or the bare ``gpt-5``). This
+ Azure model identifier (e.g. ``azure:gpt-5``, or the bare
``gpt-6.1-sol``). This
field appears as a dedicated input in the connection form (via
``conn-fields``) and stores its value in ``extra["model"]``.
@@ -52,7 +52,7 @@ Model
this connection type's own platform, so nothing else needs naming it
explicitly. Writing the ``azure:`` prefix yourself has the same effect and
is
still accepted. A name prefixed with a *different*, recognized platform
(e.g.
- ``openai:gpt-5``) is used verbatim instead -- a name is only treated as
+ ``openai:gpt-6.1-sol``) is used verbatim instead -- a name is only treated
as
already prefixed when the segment before its first ``:`` is itself a real
pydantic-ai provider, not merely present. That other platform's provider
class is built from the fields this connection forwards (``API Key``,
diff --git a/providers/common/ai/docs/frameworks/openai_agents.rst
b/providers/common/ai/docs/frameworks/openai_agents.rst
index 0d96b63c19a..795fd75b790 100644
--- a/providers/common/ai/docs/frameworks/openai_agents.rst
+++ b/providers/common/ai/docs/frameworks/openai_agents.rst
@@ -89,7 +89,7 @@ Then build the agent as you would without Airflow, with the
toolset's tools in
agent = Agent(
name="analyst",
- model="gpt-5-mini",
+ model="gpt-6.1-terra",
instructions="Use list_tables, get_schema and query to answer.",
tools=AirflowTools(SQLToolset(db_conn_id="crm")),
)
@@ -335,7 +335,7 @@ destroys the sandbox when the block ends. A call outside
the block fails with
from airflow.providers.common.ai.toolsets import SandboxToolset
with SandboxToolset(ModalSandboxBackend()) as sandbox:
- agent = Agent(name="coder", model="gpt-5-mini",
tools=AirflowTools(sandbox))
+ agent = Agent(name="coder", model="gpt-6.1-terra",
tools=AirflowTools(sandbox))
answer = Runner.run_sync(agent, "Plot last month's
signups.").final_output
See :ref:`sandbox-other-frameworks` for the backends and what the sandbox
contains.
@@ -432,7 +432,7 @@ next to the toolsets:
function=lookup_customer,
)
warehouse = SQLToolset(db_conn_id="warehouse")
- agent = Agent(name="support", model="gpt-5-mini",
tools=AirflowTools(warehouse, lookup))
+ agent = Agent(name="support", model="gpt-6.1-terra",
tools=AirflowTools(warehouse, lookup))
Return ``ToolResult(content=..., is_error=True)`` for a failure the model can
correct,
and raise for anything else. An ``AirflowTool`` you build has no retry limit
of its own,
@@ -457,12 +457,12 @@ pass ``failure_error_function=None``:
analyst = Agent(
name="analyst",
- model="gpt-5-mini",
+ model="gpt-6.1-terra",
tools=AirflowTools(SQLToolset(db_conn_id="warehouse")),
)
lead = Agent(
name="lead",
- model="gpt-5-mini",
+ model="gpt-6.1-terra",
tools=[analyst.as_tool("ask_analyst", "Ask the SQL analyst.",
failure_error_function=None)],
)
diff --git a/providers/common/ai/docs/hooks/langchain.rst
b/providers/common/ai/docs/hooks/langchain.rst
index 1783dfa6ca4..6901804d476 100644
--- a/providers/common/ai/docs/hooks/langchain.rst
+++ b/providers/common/ai/docs/hooks/langchain.rst
@@ -66,7 +66,7 @@ Any model identifier accepted by
works when the provider's chat class accepts ``api_key`` and ``base_url``.
Common identifiers:
-- ``openai:gpt-5``, ``openai:gpt-5-mini`` -- requires ``langchain-openai``
+- ``openai:gpt-6.1-sol``, ``openai:gpt-6.1-terra`` -- requires
``langchain-openai``
- ``anthropic:claude-sonnet-5`` -- requires ``langchain-anthropic``
- ``groq:llama-3.3-70b-versatile`` -- requires ``langchain-groq``
- ``mistralai:mistral-large-latest`` -- requires ``langchain-mistralai``
@@ -133,7 +133,7 @@ The hook reads credentials from the Airflow connection of
type ``langchain``:
``init_embeddings``).
- **host** -- Optional base URL (passed as ``base_url``; useful for custom
OpenAI-compatible endpoints, Ollama, vLLM).
-- **extra** JSON -- ``{"model": "openai:gpt-5", "embed_model":
"openai:text-embedding-3-small"}``
+- **extra** JSON -- ``{"model": "openai:gpt-6.1-sol", "embed_model":
"openai:text-embedding-3-small"}``
to set default chat and embedding model identifiers on the connection.
Parameters
@@ -156,7 +156,7 @@ Parameters
common one-provider case, leave unset and the hook reuses
``llm_conn_id``.
* - ``llm_model``
- ``None`` (falls back to ``extra["model"]`` on the connection)
- - Chat model identifier in ``provider:name`` form, e.g. ``openai:gpt-5``.
+ - Chat model identifier in ``provider:name`` form, e.g.
``openai:gpt-6.1-sol``.
Only required when calling ``get_chat_model()``.
* - ``embed_model``
- ``None`` (falls back to ``extra["embed_model"]`` on the connection)
diff --git a/providers/common/ai/docs/hooks/llamaindex.rst
b/providers/common/ai/docs/hooks/llamaindex.rst
index 6e0e9906f96..236d8f400f9 100644
--- a/providers/common/ai/docs/hooks/llamaindex.rst
+++ b/providers/common/ai/docs/hooks/llamaindex.rst
@@ -93,7 +93,7 @@ The hook reads credentials from the Airflow connection of
type ``llamaindex``:
an OpenAI-compatible proxy that accepts OpenAI's exact model names (e.g.
an internal gateway) -- not Ollama or vLLM (see above).
- **extra** JSON --
- ``{"embed_model": "text-embedding-3-small", "llm_model": "gpt-5"}`` --
+ ``{"embed_model": "text-embedding-3-small", "llm_model": "gpt-6.1-sol"}`` --
default model identifiers stored on the connection.
Parameters
@@ -125,7 +125,7 @@ Parameters
input. Only pass trusted values.
* - ``llm_model``
- ``None`` (falls back to ``extra["llm_model"]``)
- - LLM model name, e.g. ``gpt-5``. Required when calling ``get_llm()``.
+ - LLM model name, e.g. ``gpt-6.1-sol``. Required when calling
``get_llm()``.
.. seealso::
`llama_index.embeddings.openai.OpenAIEmbedding
<https://developers.llamaindex.ai/python/framework-api-reference/embeddings/openai/>`__
diff --git a/providers/common/ai/docs/hooks/pydantic_ai.rst
b/providers/common/ai/docs/hooks/pydantic_ai.rst
index 0ac7ef1336e..cfa5fa0a1f4 100644
--- a/providers/common/ai/docs/hooks/pydantic_ai.rst
+++ b/providers/common/ai/docs/hooks/pydantic_ai.rst
@@ -80,7 +80,7 @@ you version-control agent configs independently.
.. code-block:: yaml
:caption: agent_spec.yaml
- model: openai:gpt-5-mini
+ model: openai:gpt-6.1-terra
instructions: >
You are a concise summarizer. Given any text, respond with a single
paragraph that captures the key points.
diff --git a/providers/common/ai/docs/installation.rst
b/providers/common/ai/docs/installation.rst
index e28c8df8480..4c419e633da 100644
--- a/providers/common/ai/docs/installation.rst
+++ b/providers/common/ai/docs/installation.rst
@@ -81,7 +81,7 @@ The provider runs on Airflow 2.11, but some features need a
newer Airflow versio
* - :doc:`Approval gates <approval_gates>` and :doc:`HITL review
<hitl_review>`
- Airflow 3.1
* - The **Model** field in the connection form; on older Airflow versions
put the model in
- **Extra**, for example ``{"model": "openai:gpt-5"}``
+ **Extra**, for example ``{"model": "openai:gpt-6.1-sol"}``
- Airflow 3.2
* - :doc:`Retry policies <retry_policies>`
- Airflow 3.3
diff --git a/providers/common/ai/docs/local_development.rst
b/providers/common/ai/docs/local_development.rst
index 64884ebfc23..117b43970e3 100644
--- a/providers/common/ai/docs/local_development.rst
+++ b/providers/common/ai/docs/local_development.rst
@@ -34,7 +34,7 @@ scheduler, metadata database, or ``airflow db migrate`` is
involved:
.. code-block:: bash
- export AIRFLOW_CONN_MY_LLM='{"conn_type": "pydanticai", "password":
"sk-...", "extra": {"model": "openai:gpt-5"}}'
+ export AIRFLOW_CONN_MY_LLM='{"conn_type": "pydanticai", "password":
"sk-...", "extra": {"model": "openai:gpt-6.1-sol"}}'
export AIRFLOW_CONN_ORDERS_DB='{"conn_type": "sqlite", "host":
"/tmp/orders.db"}'
.. code-block:: python
@@ -131,7 +131,7 @@ key:
.. code-block:: bash
- export AIRFLOW_CONN_MY_LLM='{"conn_type": "pydanticai", "extra": {"model":
"openai:gpt-5"}}'
+ export AIRFLOW_CONN_MY_LLM='{"conn_type": "pydanticai", "extra": {"model":
"openai:gpt-6.1-sol"}}'
``dag.test()`` needs a metadata database, so run ``airflow db migrate`` once
in the
test environment. It also looks the Dag up in your Dags folder, so import the
Dag
diff --git a/providers/common/ai/docs/operators/agent.rst
b/providers/common/ai/docs/operators/agent.rst
index 0da6801bf8f..b5452dc7130 100644
--- a/providers/common/ai/docs/operators/agent.rst
+++ b/providers/common/ai/docs/operators/agent.rst
@@ -350,7 +350,7 @@ When the provider reports cache activity, the task log
shows it under the run su
.. code-block:: text
- LLM run complete: model=claude-sonnet-4-5, requests=2, tool_calls=1,
input_tokens=..., ...
+ LLM run complete: model=claude-sonnet-5-5, requests=2, tool_calls=1,
input_tokens=..., ...
LLM prompt cache: cache_read_tokens=..., cache_write_tokens=...
``input_tokens`` includes both counts. With :doc:`../observability` turned on,
each
@@ -363,7 +363,7 @@ Parameters
- ``prompt``: The prompt to send to the agent (operator) or the return value
of the decorated function (decorator).
- ``llm_conn_id``: Airflow connection ID for the LLM provider.
-- ``model_id``: Model identifier (e.g. ``"openai:gpt-5"``). Overrides the
+- ``model_id``: Model identifier (e.g. ``"openai:gpt-6.1-sol"``). Overrides the
connection's extra field.
- ``system_prompt``: System-level instructions for the agent. Supports Jinja
templating.
@@ -497,7 +497,7 @@ is logged with model name, token usage, and the full tool
call sequence:
.. code-block:: text
- INFO - LLM run complete: model=gpt-5, requests=4, tool_calls=3,
input_tokens=2847, output_tokens=512, total_tokens=3359
+ INFO - LLM run complete: model=gpt-6.1-sol, requests=4, tool_calls=3,
input_tokens=2847, output_tokens=512, total_tokens=3359
INFO - Tool call sequence: list_tables -> get_schema -> query
At DEBUG level, the LLM output is also logged (truncated to 500 characters).
diff --git a/providers/common/ai/docs/operators/llm.rst
b/providers/common/ai/docs/operators/llm.rst
index 83b134c439b..fb282d6ac8c 100644
--- a/providers/common/ai/docs/operators/llm.rst
+++ b/providers/common/ai/docs/operators/llm.rst
@@ -287,7 +287,7 @@ Parameters
- ``fallback_conn_ids``: Connection IDs to fail over to, in order, when the
primary
provider is unavailable. Overrides the list in the connection's extra; an
explicit
``[]`` disables a chain configured there. See :doc:`../provider_fallback`.
-- ``model_id``: Model identifier (e.g. ``"openai:gpt-5"``). Overrides the
connection's extra field.
+- ``model_id``: Model identifier (e.g. ``"openai:gpt-6.1-sol"``). Overrides
the connection's extra field.
- ``system_prompt``: System-level instructions for the agent. Supports Jinja
templating.
- ``output_type``: Expected output type (default: ``str``). Set to a Pydantic
``BaseModel``
for structured output.
diff --git a/providers/common/ai/docs/operators/llm_batch.rst
b/providers/common/ai/docs/operators/llm_batch.rst
index 3bace88ee74..2a82992b04d 100644
--- a/providers/common/ai/docs/operators/llm_batch.rst
+++ b/providers/common/ai/docs/operators/llm_batch.rst
@@ -94,7 +94,7 @@ Every request gets exactly one JSONL row with the same keys:
{"custom_id": "3f9c...-0", "index": 0, "status": "success",
"output": {"label": "positive", "confidence": 0.93}, "raw_output": null,
"error": null,
- "model": "gpt-5", "usage": {"input_tokens": 41, "output_tokens": 12},
"finish_reason": "stop"}
+ "model": "gpt-6.1-sol", "usage": {"input_tokens": 41, "output_tokens":
12}, "finish_reason": "stop"}
``status`` is one of ``success``, ``error``, ``invalid_output``, ``expired``,
``cancelled`` or
``missing``. ``output`` is set only for ``success``; ``raw_output`` preserves
what the model
diff --git a/providers/common/ai/docs/operators/llm_branch.rst
b/providers/common/ai/docs/operators/llm_branch.rst
index 64fc3b03e99..7194e2be42e 100644
--- a/providers/common/ai/docs/operators/llm_branch.rst
+++ b/providers/common/ai/docs/operators/llm_branch.rst
@@ -300,7 +300,7 @@ Parameters
- ``prompt``: The prompt to send to the LLM (operator) or the return value of
the
decorated function (decorator).
- ``llm_conn_id``: Airflow connection ID for the LLM provider.
-- ``model_id``: Model identifier (e.g. ``"openai:gpt-5"``). Overrides the
connection's extra field.
+- ``model_id``: Model identifier (e.g. ``"openai:gpt-6.1-sol"``). Overrides
the connection's extra field.
- ``system_prompt``: System-level instructions for the agent. Supports Jinja
templating.
- ``branches``: Optional mapping of downstream task ID to a ``BranchOption`` (a
description and, optionally, a ``min_confidence`` for that branch) or to a
string as
diff --git a/providers/common/ai/docs/operators/llm_file_analysis.rst
b/providers/common/ai/docs/operators/llm_file_analysis.rst
index 1e58a977123..8a8e12c3f81 100644
--- a/providers/common/ai/docs/operators/llm_file_analysis.rst
+++ b/providers/common/ai/docs/operators/llm_file_analysis.rst
@@ -145,7 +145,7 @@ Parameters
Parquet, and Avro inputs. This controls structural preview depth, while
``max_file_size_bytes`` and ``max_total_size_bytes`` are byte-level read
guards and ``max_text_chars`` is the final prompt-text budget. Default
``10``.
-- ``model_id``: Model identifier (e.g. ``"openai:gpt-5"``). Overrides the
+- ``model_id``: Model identifier (e.g. ``"openai:gpt-6.1-sol"``). Overrides the
connection's extra field.
- ``system_prompt``: System-level instructions appended to the operator's
built-in read-only guidance.
diff --git a/providers/common/ai/docs/operators/llm_schema_compare.rst
b/providers/common/ai/docs/operators/llm_schema_compare.rst
index d7e821acb3a..747440c1121 100644
--- a/providers/common/ai/docs/operators/llm_schema_compare.rst
+++ b/providers/common/ai/docs/operators/llm_schema_compare.rst
@@ -184,7 +184,7 @@ Parameters
- ``prompt``: Instructions for the LLM on what to compare and flag.
- ``llm_conn_id``: Airflow connection ID for the LLM provider.
-- ``model_id``: Model identifier (e.g. ``"openai:gpt-5"``). Overrides the
+- ``model_id``: Model identifier (e.g. ``"openai:gpt-6.1-sol"``). Overrides the
connection's extra field.
- ``system_prompt``: Instructions included in the LLM system prompt. Defaults
to
``DEFAULT_SYSTEM_PROMPT`` which contains cross-system type equivalences and
diff --git a/providers/common/ai/docs/provider_fallback.rst
b/providers/common/ai/docs/provider_fallback.rst
index 11823b06b2e..d412a15c6aa 100644
--- a/providers/common/ai/docs/provider_fallback.rst
+++ b/providers/common/ai/docs/provider_fallback.rst
@@ -33,7 +33,7 @@ Put the chain in the primary connection's extra:
.. code-block:: json
{
- "model": "openai:gpt-5",
+ "model": "openai:gpt-6.1-sol",
"fallback_conn_ids": ["anthropic_prod", "bedrock_dr"]
}
@@ -46,7 +46,7 @@ That is the point of configuring it here rather than in Dag
code: the Dag keeps
connection, and whoever administers the connections owns the failover
topology. Changing a
standby provider is a connection edit, not a Dag deployment.
-A *bare* model name (e.g. ``"gpt-5"`` rather than ``"openai:gpt-5"``) is
forwarded down
+A *bare* model name (e.g. ``"gpt-6.1-sol"`` rather than
``"openai:gpt-6.1-sol"``) is forwarded down
the chain as a logical model name: each connection that has no ``model`` of
its own
resolves that name against its own platform, so one bare name can reach a
primary and
every fallback without repeating it per connection. It does not matter where
the primary's
@@ -55,11 +55,11 @@ or hook are forwarded alike. A fallback with its own
``model`` in
extra always uses that instead -- this is how a fallback pins a spelling the
forwarded
name would not produce, such as Bedrock's region-prefixed ``us.anthropic.``
model ids. A
name that already pins a platform (its segment before the first ``:`` is
itself a
-recognized provider, e.g. ``"openai:gpt-5"``) is *not* forwarded; a fallback
with no
+recognized provider, e.g. ``"openai:gpt-6.1-sol"``) is *not* forwarded; a
fallback with no
``model`` of its own still raises "no model specified" rather than trying a
prefixed name
meant for a different provider.
-A bare name with no ``:`` of its own (e.g. ``"gpt-5"``) forwards to any
fallback
+A bare name with no ``:`` of its own (e.g. ``"gpt-6.1-sol"``) forwards to any
fallback
regardless of platform, since nothing about the spelling is vendor-specific. A
bare name
that itself contains a ``:`` -- a vendor's own native model id, such as
Bedrock's
version-suffixed ``"us.anthropic.claude-opus-4-6-v1:0"`` -- only forwards to a
fallback on
diff --git a/providers/common/ai/docs/quickstart.rst
b/providers/common/ai/docs/quickstart.rst
index c32379cc4e0..5f2b49271b6 100644
--- a/providers/common/ai/docs/quickstart.rst
+++ b/providers/common/ai/docs/quickstart.rst
@@ -49,12 +49,12 @@ connection change, not a Dag change. The Dag below uses the
default connection i
``pydanticai_default``.
The quickest way to create it is an environment variable on the machine that
runs the
-scheduler and the workers. Replace ``sk-...`` with your key and
``openai:gpt-5`` with
+scheduler and the workers. Replace ``sk-...`` with your key and
``openai:gpt-6.1-sol`` with
a model you have access to:
.. code-block:: bash
- export AIRFLOW_CONN_PYDANTICAI_DEFAULT='{"conn_type": "pydanticai",
"password": "sk-...", "extra": {"model": "openai:gpt-5"}}'
+ export AIRFLOW_CONN_PYDANTICAI_DEFAULT='{"conn_type": "pydanticai",
"password": "sk-...", "extra": {"model": "openai:gpt-6.1-sol"}}'
You can also create it in the UI under **Admin > Connections**: choose the
connection type
**Pydantic AI**, set the connection id to ``pydanticai_default``, put the API
key in
diff --git a/providers/common/ai/docs/retry_policies.rst
b/providers/common/ai/docs/retry_policies.rst
index b5567cfb8cb..8bf2b9acc94 100644
--- a/providers/common/ai/docs/retry_policies.rst
+++ b/providers/common/ai/docs/retry_policies.rst
@@ -550,7 +550,7 @@ Both policies share every parameter below except
``categories``,
- Airflow connection ID for the LLM provider.
* - ``model_id``
- None
- - Override the model from the connection (e.g., ``"openai:gpt-5-mini"``).
+ - Override the model from the connection (e.g.,
``"openai:gpt-6.1-terra"``).
* - ``instructions``
- (built-in)
- Custom system prompt for error classification. On ``LLMRetryPolicy`` it
diff --git a/providers/common/ai/docs/toolsets/logging.rst
b/providers/common/ai/docs/toolsets/logging.rst
index 6efc61dd874..a7476e9ad95 100644
--- a/providers/common/ai/docs/toolsets/logging.rst
+++ b/providers/common/ai/docs/toolsets/logging.rst
@@ -51,7 +51,7 @@ For an agent you build yourself, pass the capability to any
pydantic-ai ``Agent`
from airflow.providers.common.ai.toolsets.sql import SQLToolset
agent = Agent(
- "openai:gpt-5",
+ "openai:gpt-6.1-sol",
toolsets=[SQLToolset(db_conn_id="my_db")],
capabilities=[ToolLoggingCapability()],
)
diff --git a/providers/common/ai/docs/troubleshooting.rst
b/providers/common/ai/docs/troubleshooting.rst
index 03dc0d473ed..1cb8dfc0150 100644
--- a/providers/common/ai/docs/troubleshooting.rst
+++ b/providers/common/ai/docs/troubleshooting.rst
@@ -33,7 +33,7 @@ Model and connection errors
``Connection '...' has no default model provider, so the bare model name '...'
cannot be resolved``
The generic ``pydanticai`` connection type needs a ``provider:`` prefix on
the model
- name, for example ``openai:gpt-5`` rather than ``gpt-5``. Add the prefix,
set
+ name, for example ``openai:gpt-6.1-sol`` rather than ``gpt-6.1-sol``. Add
the prefix, set
**Default Model Provider** (``extra["model_provider"]``, e.g.
``openai-chat``) on the connection,
or use a vendor connection type (:doc:`connections/pydantic_ai_azure`,
:doc:`connections/pydantic_ai_bedrock`,
:doc:`connections/pydantic_ai_vertex`), which
@@ -86,7 +86,7 @@ An ``ImportError`` for ``pydantic_ai.models.<vendor>``, the
vendor SDK, or ``pyd
The connection named by ``llm_conn_id`` is not a ``pydanticai`` connection
type. This
is easy to hit by picking a similarly named type such as ``openai`` when
the OpenAI
provider is installed. Change the connection type to ``pydanticai``, put
the API key
- in the **API Key** field (the password) and the model, for example
``openai:gpt-5``,
+ in the **API Key** field (the password) and the model, for example
``openai:gpt-6.1-sol``,
in **Model**. For Azure, Bedrock or Vertex use the matching
``pydanticai_azure``,
``pydanticai_bedrock`` or ``pydanticai_vertex`` type instead; see
:doc:`model_providers`.
diff --git a/providers/common/ai/docs/why_common_ai.rst
b/providers/common/ai/docs/why_common_ai.rst
index f0d24004b0f..9d1854f10c9 100644
--- a/providers/common/ai/docs/why_common_ai.rst
+++ b/providers/common/ai/docs/why_common_ai.rst
@@ -50,7 +50,7 @@ the model key in the worker's environment and the tools
written by hand:
def check_report() -> str:
# The key comes from OPENAI_API_KEY in the worker's environment.
agent = Agent(
- "openai:gpt-5",
+ "openai:gpt-6.1-sol",
instructions=(
"You check reports against the warehouse. Read the report
files, query "
"the orders table, and say whether the numbers agree."
diff --git a/providers/common/ai/provider.yaml
b/providers/common/ai/provider.yaml
index 4b8267bc7b3..d6931914b1d 100644
--- a/providers/common/ai/provider.yaml
+++ b/providers/common/ai/provider.yaml
@@ -222,11 +222,11 @@ connection-types:
password: API Key
placeholders:
host: "https://api.openai.com/v1 (optional, for custom endpoints /
Ollama)"
- extra: '{"model": "openai:gpt-5"}'
+ extra: '{"model": "openai:gpt-6.1-sol"}'
conn-fields:
model:
label: Model
- description: "Model as provider:name (e.g. openai:gpt-5), or bare with
a Default Model Provider"
+ description: "Model as provider:name (e.g. openai:gpt-6.1-sol), or
bare with a Default Model Provider"
schema:
type:
- string
@@ -533,14 +533,14 @@ connection-types:
password: API Key
placeholders:
host: "https://api.openai.com/v1 (optional, for custom endpoints /
Ollama)"
- extra: '{"model": "openai:gpt-5", "embed_model":
"openai:text-embedding-3-small"}'
+ extra: '{"model": "openai:gpt-6.1-sol", "embed_model":
"openai:text-embedding-3-small"}'
conn-fields:
model:
label: Chat Model
description: >
Chat model in provider:name format dispatched via
langchain.chat_models.init_chat_model
- (e.g. openai:gpt-5, anthropic:claude-sonnet-5).
+ (e.g. openai:gpt-6.1-sol, anthropic:claude-sonnet-5).
schema:
type:
- string
@@ -569,7 +569,7 @@ connection-types:
password: API Key
placeholders:
host: "https://api.openai.com/v1 (optional, for an OpenAI-compatible
proxy)"
- extra: '{"embed_model": "text-embedding-3-small", "llm_model":
"gpt-5"}'
+ extra: '{"embed_model": "text-embedding-3-small", "llm_model":
"gpt-6.1-sol"}'
conn-fields:
embed_model:
label: Embedding Model
@@ -584,7 +584,7 @@ connection-types:
llm_model:
label: LLM Model
description: >
- Default LlamaIndex LLM model name (e.g. gpt-5). The OpenAI
+ Default LlamaIndex LLM model name (e.g. gpt-6.1-sol). The OpenAI
default; for other vendors pass a pre-built LLM instance to
the operator.
schema:
diff --git a/providers/common/ai/src/airflow/providers/common/ai/batch/base.py
b/providers/common/ai/src/airflow/providers/common/ai/batch/base.py
index 3f2715f61dd..84b8a1bf0e4 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/batch/base.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/batch/base.py
@@ -165,7 +165,7 @@ class BatchAdapter(ABC):
without touching them.
"""
- #: The ``model_id`` prefix this adapter serves (``"openai"`` in
``"openai:gpt-5"``).
+ #: The ``model_id`` prefix this adapter serves (``"openai"`` in
``"openai:gpt-6.1-sol"``).
name: ClassVar[str]
#: Airflow connection types whose ``password``/``host`` this adapter can
turn into
#: credentials. Dispatch rejects any other connection type with a clear
error.
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/batch/dispatch.py
b/providers/common/ai/src/airflow/providers/common/ai/batch/dispatch.py
index 094ced8261a..6e920c1e058 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/batch/dispatch.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/batch/dispatch.py
@@ -17,7 +17,7 @@
"""
Dispatch from a connection and a ``model_id`` to a
:class:`~airflow.providers.common.ai.batch.base.BatchAdapter`.
-The ``model_id`` prefix (``"openai"`` in ``"openai:gpt-5"``) selects the
adapter,
+The ``model_id`` prefix (``"openai"`` in ``"openai:gpt-6.1-sol"``) selects the
adapter,
because the prefix decides the request shape and the batch API being called.
The connection type is then checked against the adapter's
:attr:`~airflow.providers.common.ai.batch.base.BatchAdapter.conn_types`, since
@@ -133,14 +133,14 @@ def split_model_id(model_id: str | None) -> tuple[str,
str]:
"""
if not model_id or ":" not in model_id:
raise UnsupportedBatchProviderError(
- "model_id must be written as '<provider>:<model>' (e.g.
'openai:gpt-5') to "
+ "model_id must be written as '<provider>:<model>' (e.g.
'openai:gpt-6.1-sol') to "
f"select a batch adapter; got {model_id!r}. Set it on the operator
or in the "
"connection's Model field, or set the connection's Default Model
Provider."
)
prefix, _, bare = model_id.strip().partition(":")
if not prefix or not bare:
raise UnsupportedBatchProviderError(
- f"model_id {model_id!r} must have both a provider prefix and a
model name (e.g. 'openai:gpt-5')."
+ f"model_id {model_id!r} must have both a provider prefix and a
model name (e.g. 'openai:gpt-6.1-sol')."
)
return prefix, bare
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/decorators/llm_batch.py
b/providers/common/ai/src/airflow/providers/common/ai/decorators/llm_batch.py
index 1676c679ae2..1a352efe293 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/decorators/llm_batch.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/decorators/llm_batch.py
@@ -119,7 +119,7 @@ def llm_batch_task(
@task.llm_batch(
llm_conn_id="pydanticai_default",
- model_id="openai:gpt-5",
+ model_id="openai:gpt-6.1-sol",
result_path="s3://bucket/prefix/{{ run_id }}",
)
def build_prompts(rows: list[str]) -> list[str]:
@@ -129,7 +129,7 @@ def llm_batch_task(
@task.llm_batch(
llm_conn_id="pydanticai_default",
- model_id="openai:gpt-5",
+ model_id="openai:gpt-6.1-sol",
result_path="s3://bucket/prefix/{{ run_id }}",
output_type=Diagnosis,
)
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/durable/capability.py
b/providers/common/ai/src/airflow/providers/common/ai/durable/capability.py
index 848aee65607..c03da24e961 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/durable/capability.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/durable/capability.py
@@ -381,7 +381,7 @@ class
AirflowDurability(BaseDurabilityCapability[AgentDepsT]):
@task(retries=3)
def research(question: str) -> str:
agent = Agent(
- "anthropic:claude-sonnet-4-5",
+ "anthropic:claude-sonnet-5-5",
name="researcher",
toolsets=[SQLToolset("warehouse")],
capabilities=[AirflowDurability()],
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_recovery.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_recovery.py
index 53b2d3210d1..ca394a945e1 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_recovery.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_recovery.py
@@ -25,7 +25,7 @@ on whichever connection answers.
Prerequisites:
- Connection ``llm_primary`` with ``conn_type='pydanticai'``,
``password=<API key>``
- and ``extra='{"model": "openai:gpt-5-mini"}'``
+ and ``extra='{"model": "openai:gpt-6.1-terra"}'``
- Connection ``llm_standby`` with ``conn_type='pydanticai'``,
``password=<API key>``
and ``extra='{"model": "anthropic:claude-sonnet-5"}'``
- Connection ``warehouse`` to a database with an ``orders`` table
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_spec.yaml
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_spec.yaml
index a750ae57061..d24564f5bd5 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_spec.yaml
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_agent_spec.yaml
@@ -17,7 +17,7 @@
# pydantic-ai AgentSpec file — referenced by example_pydantic_ai_hook.py
---
-model: openai:gpt-5-mini
+model: openai:gpt-6.1-terra
instructions: >
You are a concise summarizer. Given any text, respond with a single
paragraph that captures the key points. Do not add commentary.
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_hook.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_hook.py
index 0dae919297e..23ad18d2280 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_hook.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_hook.py
@@ -35,7 +35,7 @@ def example_langchain_chat():
def summarize(text: str) -> str:
hook = LangChainHook(
llm_conn_id="langchain_default",
- llm_model="openai:gpt-5",
+ llm_model="openai:gpt-6.1-sol",
)
llm = hook.get_chat_model()
# LangChain BaseMessage.content is `str | list[...]` (multi-modal
union);
@@ -85,7 +85,7 @@ def example_langchain_chat_and_embedding():
def use_both() -> dict:
hook = LangChainHook(
llm_conn_id="langchain_default",
- llm_model="openai:gpt-5",
+ llm_model="openai:gpt-6.1-sol",
embed_model="openai:text-embedding-3-small",
)
chat = hook.get_chat_model()
@@ -113,7 +113,7 @@ def example_langchain_different_conns():
hook = LangChainHook(
llm_conn_id="openai_chat",
embed_conn_id="openai_embed",
- llm_model="openai:gpt-5",
+ llm_model="openai:gpt-6.1-sol",
embed_model="openai:text-embedding-3-small",
)
chat = hook.get_chat_model()
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_tool_agent.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_tool_agent.py
index 7fba7d7b6ac..01d3f011c39 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_tool_agent.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_tool_agent.py
@@ -85,7 +85,7 @@ from airflow.sdk import Param
# ---------------------------------------------------------------------------
LLM_CONN_ID = "langchain_default"
-LLM_MODEL = os.environ.get("LLM_MODEL", "openai:gpt-5")
+LLM_MODEL = os.environ.get("LLM_MODEL", "openai:gpt-6.1-sol")
EMBEDDING_MODEL = os.environ.get("EMBEDDING_MODEL",
"openai:text-embedding-3-small")
DOCS_PATH = os.environ.get("DOCS_PATH", "/opt/airflow/data/rag_documents")
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_toolset_bridge.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_toolset_bridge.py
index dc5c326b21f..29b8726b5a9 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_toolset_bridge.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_langchain_toolset_bridge.py
@@ -46,7 +46,7 @@ import os
from airflow.providers.common.compat.sdk import dag, task
LLM_CONN_ID = os.environ.get("LLM_CONN_ID", "langchain_default")
-LLM_MODEL = os.environ.get("LLM_MODEL", "openai:gpt-5")
+LLM_MODEL = os.environ.get("LLM_MODEL", "openai:gpt-6.1-sol")
DB_CONN_ID = os.environ.get("DB_CONN_ID", "sql_default")
DEFAULT_QUESTION = "Which tables exist, and how many rows does each contain?"
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_batch.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_batch.py
index 1ed681d223d..c3c50e5d24d 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_batch.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_batch.py
@@ -88,7 +88,7 @@ def example_llm_batch_operator():
requests=[f"Review: {review!r}" for review in REVIEWS],
result_path=f"{RESULT_ROOT}/classify",
llm_conn_id="pydanticai_default",
- model_id="openai:gpt-5-mini",
+ model_id="openai:gpt-6.1-terra",
system_prompt="Classify the sentiment of this product review.",
output_type=Sentiment,
deferrable=True,
@@ -135,7 +135,7 @@ def example_llm_batch_provider_params():
requests=[f"Review: {review!r}" for review in REVIEWS],
result_path=f"{RESULT_ROOT}/keywords-openai",
llm_conn_id="pydanticai_default",
- model_id="openai:gpt-5-mini",
+ model_id="openai:gpt-6.1-terra",
system_prompt="Extract up to three keywords from the review.",
output_type=list[str],
max_tokens=2048,
@@ -190,7 +190,7 @@ example_llm_batch_gemini()
def example_llm_batch_per_request_overrides():
@task.llm_batch(
llm_conn_id="pydanticai_default",
- model_id="openai:gpt-4.1-mini",
+ model_id="openai:gpt-6-luna",
result_path=f"{RESULT_ROOT}/summaries",
system_prompt="Summarize the review in one short sentence.",
max_tokens=60,
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_fallback.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_fallback.py
index b5c3c471fbb..4ddb11944e3 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_fallback.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_fallback.py
@@ -24,9 +24,9 @@ Prerequisites:
- Connection ``llm_primary_down`` with ``conn_type='pydanticai'``,
``host='http://127.0.0.1:9/v1'`` (a port nothing listens on, standing in
for an
outage), ``password=<any value>``, and
- ``extra='{"model": "openai:gpt-5-mini", "fallback_conn_ids":
["llm_fallback"]}'``
+ ``extra='{"model": "openai:gpt-6.1-terra", "fallback_conn_ids":
["llm_fallback"]}'``
- Connection ``llm_primary_down_no_chain``: same as ``llm_primary_down`` but
with
- ``extra='{"model": "openai:gpt-5-mini"}'`` (no ``fallback_conn_ids``) --
used by
+ ``extra='{"model": "openai:gpt-6.1-terra"}'`` (no ``fallback_conn_ids``)
-- used by
the operator-argument and hook-argument Dags, so the chain visibly comes
from the
task instead of the connection
- Connection ``llm_fallback`` with ``conn_type='pydanticai'``,
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/get_provider_info.py
b/providers/common/ai/src/airflow/providers/common/ai/get_provider_info.py
index 6c172a2a719..6b9281d39ba 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/get_provider_info.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/get_provider_info.py
@@ -193,13 +193,13 @@ def get_provider_info():
"relabeling": {"password": "API Key"},
"placeholders": {
"host": "https://api.openai.com/v1 (optional, for
custom endpoints / Ollama)",
- "extra": '{"model": "openai:gpt-5"}',
+ "extra": '{"model": "openai:gpt-6.1-sol"}',
},
},
"conn-fields": {
"model": {
"label": "Model",
- "description": "Model as provider:name (e.g.
openai:gpt-5), or bare with a Default Model Provider",
+ "description": "Model as provider:name (e.g.
openai:gpt-6.1-sol), or bare with a Default Model Provider",
"schema": {"type": ["string", "null"]},
},
"model_provider": {
@@ -431,13 +431,13 @@ def get_provider_info():
"relabeling": {"password": "API Key"},
"placeholders": {
"host": "https://api.openai.com/v1 (optional, for
custom endpoints / Ollama)",
- "extra": '{"model": "openai:gpt-5", "embed_model":
"openai:text-embedding-3-small"}',
+ "extra": '{"model": "openai:gpt-6.1-sol",
"embed_model": "openai:text-embedding-3-small"}',
},
},
"conn-fields": {
"model": {
"label": "Chat Model",
- "description": "Chat model in provider:name format
dispatched via langchain.chat_models.init_chat_model (e.g. openai:gpt-5,
anthropic:claude-sonnet-5).\n",
+ "description": "Chat model in provider:name format
dispatched via langchain.chat_models.init_chat_model (e.g. openai:gpt-6.1-sol,
anthropic:claude-sonnet-5).\n",
"schema": {"type": ["string", "null"]},
},
"embed_model": {
@@ -457,7 +457,7 @@ def get_provider_info():
"relabeling": {"password": "API Key"},
"placeholders": {
"host": "https://api.openai.com/v1 (optional, for an
OpenAI-compatible proxy)",
- "extra": '{"embed_model": "text-embedding-3-small",
"llm_model": "gpt-5"}',
+ "extra": '{"embed_model": "text-embedding-3-small",
"llm_model": "gpt-6.1-sol"}',
},
},
"conn-fields": {
@@ -468,7 +468,7 @@ def get_provider_info():
},
"llm_model": {
"label": "LLM Model",
- "description": "Default LlamaIndex LLM model name
(e.g. gpt-5). The OpenAI default; for other vendors pass a pre-built LLM
instance to the operator.\n",
+ "description": "Default LlamaIndex LLM model name
(e.g. gpt-6.1-sol). The OpenAI default; for other vendors pass a pre-built LLM
instance to the operator.\n",
"schema": {"type": ["string", "null"]},
},
},
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/hooks/langchain.py
b/providers/common/ai/src/airflow/providers/common/ai/hooks/langchain.py
index 8c7b37c777f..645a1ca4515 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/hooks/langchain.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/hooks/langchain.py
@@ -48,7 +48,7 @@ class LangChainHook(BaseHook):
embedding-model vendor based on the model identifier.
Both identifiers use the ``provider:name`` format
- (e.g. ``"openai:gpt-5"``, ``"openai:text-embedding-3-small"``). The hook
+ (e.g. ``"openai:gpt-6.1-sol"``, ``"openai:text-embedding-3-small"``). The
hook
forwards the connection's password as ``api_key`` and its host as
``base_url``, so any provider whose LangChain class accepts those two
keyword arguments works (OpenAI, Anthropic, Groq, Mistral AI, Ollama,
@@ -59,7 +59,7 @@ class LangChainHook(BaseHook):
* **password**: API key passed as ``api_key=`` to the model constructor.
* **host**: Optional base URL passed as ``base_url=`` (custom endpoints,
Ollama, vLLM).
- * **extra** JSON: ``{"model": "openai:gpt-5", "embed_model":
"openai:text-embedding-3-small"}``
+ * **extra** JSON: ``{"model": "openai:gpt-6.1-sol", "embed_model":
"openai:text-embedding-3-small"}``
-- default chat and embedding model identifiers.
:param llm_conn_id: Airflow connection ID for the LLM provider. Falls back
@@ -69,7 +69,7 @@ class LangChainHook(BaseHook):
the common case of one provider for both chat and embeddings stays a
single hook instance.
:param llm_model: Chat model identifier in ``provider:name`` format
- (e.g. ``"openai:gpt-5"``, ``"anthropic:claude-sonnet-5"``).
+ (e.g. ``"openai:gpt-6.1-sol"``, ``"anthropic:claude-sonnet-5"``).
Overrides ``extra["model"]`` on the connection. Passing it positionally
(1.0.0 order: ``llm_model, embed_model``) is deprecated.
:param embed_model: Embedding model identifier in ``provider:name`` format
@@ -144,7 +144,7 @@ class LangChainHook(BaseHook):
"relabeling": {"password": "API Key"},
"placeholders": {
"host": "https://api.openai.com/v1 (optional, for custom
endpoints / Ollama)",
- "extra": '{"model": "openai:gpt-5", "embed_model":
"openai:text-embedding-3-small"}',
+ "extra": '{"model": "openai:gpt-6.1-sol", "embed_model":
"openai:text-embedding-3-small"}',
},
}
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/hooks/llamaindex.py
b/providers/common/ai/src/airflow/providers/common/ai/hooks/llamaindex.py
index ede87d85922..7bb5ac45104 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/hooks/llamaindex.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/hooks/llamaindex.py
@@ -88,7 +88,7 @@ class LlamaIndexHook(BaseHook):
(e.g. an internal gateway) -- not Ollama or vLLM, whose model
catalogs are rejected regardless of ``host`` (see note above).
* **extra** JSON: ``{"embed_model": "text-embedding-3-small",
- "llm_model": "gpt-5"}`` -- default model identifiers stored on the
+ "llm_model": "gpt-6.1-sol"}`` -- default model identifiers stored on the
connection.
:param llm_conn_id: Airflow connection ID for the LLM provider. Falls
@@ -99,7 +99,7 @@ class LlamaIndexHook(BaseHook):
:param embed_model: Embedding model name (e.g.
``"text-embedding-3-small"``). Overrides ``extra["embed_model"]``
on the connection. Passing it positionally (1.0.0 order:
``embed_model, llm_model``) is deprecated.
- :param llm_model: LLM model name (e.g. ``"gpt-5"``). Overrides
+ :param llm_model: LLM model name (e.g. ``"gpt-6.1-sol"``). Overrides
``extra["llm_model"]`` on the connection. Required when calling
:meth:`get_llm`. Passing it positionally (1.0.0 order: ``embed_model,
llm_model``) is deprecated.
:param embedding_kwargs: Additional keyword arguments to pass to the
embedding
@@ -161,7 +161,7 @@ class LlamaIndexHook(BaseHook):
"relabeling": {"password": "API Key"},
"placeholders": {
"host": "https://api.openai.com/v1 (optional, for an
OpenAI-compatible proxy)",
- "extra": '{"embed_model": "text-embedding-3-small",
"llm_model": "gpt-5"}',
+ "extra": '{"embed_model": "text-embedding-3-small",
"llm_model": "gpt-6.1-sol"}',
},
}
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py
b/providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py
index 9c9b0308539..114e6307edb 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py
@@ -176,13 +176,13 @@ class PydanticAIHook(BaseHook):
Connection fields:
- **password**: API key
- **host**: Base URL (optional, e.g. ``https://api.openai.com/v1``)
- - **extra** JSON: ``{"model": "openai:gpt-5",
+ - **extra** JSON: ``{"model": "openai:gpt-6.1-sol",
"fallback_conn_ids": ["anthropic_prod", "bedrock_dr"]}``; add
``"model_provider": "openai-chat"`` to resolve bare model names on
this connection
:param llm_conn_id: Airflow connection ID for the LLM provider.
:param model_id: Model identifier. A name whose segment before the first
``:``
- is itself a pydantic-ai provider (e.g. ``"openai:gpt-5"``) pins the
+ is itself a pydantic-ai provider (e.g. ``"openai:gpt-6.1-sol"``) pins
the
platform and is used verbatim -- a plain ``:`` alone is not enough,
since
some vendors' native model ids contain one of their own (e.g. Bedrock's
version-suffixed ``"us.anthropic.claude-opus-4-6-v1:0"``, which is
still a
@@ -279,7 +279,7 @@ class PydanticAIHook(BaseHook):
raise ValueError(
f"Connection {conn.conn_id!r} has type {conn.conn_type!r}, but
a Pydantic AI hook needs "
f"one of {expected_types}. Change the connection type to
'pydanticai', put the API key "
- "in the API Key field (stored as the password) and the model
(e.g. 'openai:gpt-5') in Model."
+ "in the API Key field (stored as the password) and the model
(e.g. 'openai:gpt-6.1-sol') in Model."
)
# The check above guarantees a ``PydanticAIHook``. Seeding saves the
second fetch of
# this same connection its first ``get_conn`` would make.
@@ -311,7 +311,7 @@ class PydanticAIHook(BaseHook):
"relabeling": {"password": "API Key"},
"placeholders": {
"host": "https://api.openai.com/v1 (optional, for custom
endpoints / Ollama)",
- "extra": '{"model": "openai:gpt-5"}',
+ "extra": '{"model": "openai:gpt-6.1-sol"}',
},
}
@@ -736,7 +736,7 @@ class PydanticAIHook(BaseHook):
``model`` in ``extra`` uses that instead, but a fallback with none
falls
back to the forwarded name, qualified with *its own* platform prefix.
Only a *bare* forwarded name is usable this way -- a forwarded name
that
- already pins a platform (e.g. ``"openai:gpt-5"``) names a model of the
+ already pins a platform (e.g. ``"openai:gpt-6.1-sol"``) names a model
of the
primary's provider, not this fallback's, so it is not applied; that
fallback still raises "no model specified" unless its own ``extra``
sets
a ``model``. Whether a name already pins a platform is decided by
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/agent.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/agent.py
index 559ae935474..fa1744bd2c0 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/operators/agent.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/operators/agent.py
@@ -458,7 +458,7 @@ class AgentOperator(CancellableAgentRunMixin, BaseOperator,
HITLReviewMixin, Usa
:param prompt: The prompt to send to the agent.
:param llm_conn_id: Connection ID for the LLM provider.
- :param model_id: Model identifier (e.g. ``"openai:gpt-5"``).
+ :param model_id: Model identifier (e.g. ``"openai:gpt-6.1-sol"``).
Overrides the model stored in the connection's extra field.
:param fallback_conn_ids: Connection IDs to fail over to, in order, when
the primary provider is unavailable. Overrides the
``fallback_conn_ids``
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm.py
index 0ed6273962f..7321c75de9d 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/operators/llm.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/operators/llm.py
@@ -136,7 +136,7 @@ class LLMOperator(CancellableAgentRunMixin, BaseOperator,
LLMApprovalMixin, Usag
:param prompt: The prompt to send to the LLM.
:param llm_conn_id: Connection ID for the LLM provider.
- :param model_id: Model identifier (e.g. ``"openai:gpt-5"``).
+ :param model_id: Model identifier (e.g. ``"openai:gpt-6.1-sol"``).
Overrides the model stored in the connection's extra field.
:param fallback_conn_ids: Connection IDs to fail over to, in order, when
the primary provider is unavailable. Overrides the
``fallback_conn_ids``
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_batch.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_batch.py
index e0cff28ccc1..21c32faf1be 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_batch.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_batch.py
@@ -94,7 +94,7 @@ class LLMBatchOperator(BaseOperator):
:param llm_conn_id: Connection ID for the LLM provider. Must be a
``pydanticai`` connection today.
:param model_id: Model identifier as ``"<provider>:<model>"`` (e.g.
- ``"openai:gpt-5"``). Falls back to the connection's Model field, as
+ ``"openai:gpt-6.1-sol"``). Falls back to the connection's Model field,
as
``LLMOperator`` does. A bare name takes the connection's Default
Provider, and ``openai-chat:`` selects the OpenAI adapter.
:param system_prompt: System-level instructions applied to every request
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_branch.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_branch.py
index 5854dc000ce..c3d2a18afd6 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_branch.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_branch.py
@@ -83,7 +83,7 @@ class LLMBranchOperator(LLMOperator, BranchMixIn):
:param prompt: The prompt to send to the LLM.
:param llm_conn_id: Connection ID for the LLM provider.
- :param model_id: Model identifier (e.g. ``"openai:gpt-5"``).
+ :param model_id: Model identifier (e.g. ``"openai:gpt-6.1-sol"``).
Overrides the model stored in the connection's extra field.
:param fallback_conn_ids: Connection IDs to fail over to, in order, when
the primary provider is unavailable. Overrides the
``fallback_conn_ids``
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_file_analysis.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_file_analysis.py
index 1bb2997a4e0..7943d9b0b4e 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_file_analysis.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_file_analysis.py
@@ -41,7 +41,7 @@ class LLMFileAnalysisOperator(LLMOperator):
:param prompt: The analysis prompt for the LLM.
:param llm_conn_id: Connection ID for the LLM provider.
- :param model_id: Model identifier (e.g. ``"openai:gpt-5"``).
+ :param model_id: Model identifier (e.g. ``"openai:gpt-6.1-sol"``).
Overrides the model stored in the connection's extra field.
:param fallback_conn_ids: Connection IDs to fail over to, in order, when
the primary provider is unavailable. Overrides the
``fallback_conn_ids``
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_schema_compare.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_schema_compare.py
index 3c7187c0c4a..2d14f163121 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_schema_compare.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_schema_compare.py
@@ -96,7 +96,7 @@ class LLMSchemaCompareOperator(LLMOperator):
:param prompt: Instructions for the LLM on what to compare and flag.
:param llm_conn_id: Connection ID for the LLM provider.
- :param model_id: Model identifier (e.g. ``"openai:gpt-5"``).
+ :param model_id: Model identifier (e.g. ``"openai:gpt-6.1-sol"``).
:param fallback_conn_ids: Connection IDs to fail over to, in order, when
the primary provider is unavailable. Overrides the
``fallback_conn_ids``
set in the connection's extra field. ``None`` (default) reads the
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_sql.py
b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_sql.py
index 7a1be966e4a..8d157e02520 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/operators/llm_sql.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/operators/llm_sql.py
@@ -62,7 +62,7 @@ class LLMSQLQueryOperator(LLMOperator):
:param prompt: Natural language description of the desired query.
:param llm_conn_id: Connection ID for the LLM provider.
- :param model_id: Model identifier (e.g. ``"openai:gpt-5"``).
+ :param model_id: Model identifier (e.g. ``"openai:gpt-6.1-sol"``).
Overrides the model stored in the connection's extra field.
:param fallback_conn_ids: Connection IDs to fail over to, in order, when
the primary provider is unavailable. Overrides the
``fallback_conn_ids``
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/policies/retry.py
b/providers/common/ai/src/airflow/providers/common/ai/policies/retry.py
index 61843401f3a..048f067b3ca 100644
--- a/providers/common/ai/src/airflow/providers/common/ai/policies/retry.py
+++ b/providers/common/ai/src/airflow/providers/common/ai/policies/retry.py
@@ -421,7 +421,7 @@ class LLMRetryPolicy(_ModelRetryPolicy):
(if provided) or returns DEFAULT to use the task's standard retry logic.
:param llm_conn_id: Airflow connection ID for the LLM provider.
- :param model_id: Model identifier override (e.g. ``"openai:gpt-5-mini"``
+ :param model_id: Model identifier override (e.g. ``"openai:gpt-6.1-terra"``
for cost efficiency). If not set, uses the model from the connection.
:param instructions: Custom system prompt for classification.
Defaults to a general-purpose error classifier,
:data:`DEFAULT_INSTRUCTIONS`.
diff --git a/providers/openai/docs/operators/openai.rst
b/providers/openai/docs/operators/openai.rst
index 7ebdc6ed9d2..d8aaccdbbf4 100644
--- a/providers/openai/docs/operators/openai.rst
+++ b/providers/openai/docs/operators/openai.rst
@@ -133,9 +133,10 @@ know about yet. Options worth knowing about:
``previous_response_id`` cannot reference it.
- ``previous_response_id``: the id of a prior response to continue a
multi-turn conversation from.
Cannot be used together with ``conversation`` — pass one or the other, not
both.
-- ``reasoning``: configuration for reasoning models, for example ``{"effort":
...}``. The example
- Dag above (and the operator's own default) uses ``gpt-4o-mini``, which is
not a reasoning model,
- so this option only takes effect if ``model`` is also set to a reasoning
model.
+- ``reasoning``: configuration for reasoning models, for example ``{"effort":
...}`` (supported
+ values include ``"none"``, ``"low"``, ``"medium"``, ``"high"``, ``"xhigh"``,
and ``"max"``).
+ The operator's default model (``gpt-6-luna``) is a reasoning model that
defaults to
+ ``"medium"`` effort, so this option takes effect by default.
- ``service_tier``: the processing tier the request is served from.
- ``prompt_cache_key``: an identifier used to route requests to the same
prompt cache. How long a
cache entry is retained is a separate option whose name depends on the
installed package:
diff --git a/providers/openai/src/airflow/providers/openai/hooks/openai.py
b/providers/openai/src/airflow/providers/openai/hooks/openai.py
index 541056859d0..753b5f0f885 100644
--- a/providers/openai/src/airflow/providers/openai/hooks/openai.py
+++ b/providers/openai/src/airflow/providers/openai/hooks/openai.py
@@ -72,7 +72,7 @@ from airflow.providers.openai.exceptions import (
#: methods wrapping it warn and point at the Responses and Conversations APIs
(``create_response`` /
#: ``create_conversation``); the removal date is stated once, in the reason
string below.
_ASSISTANTS_DEPRECATION_REASON = (
- "The OpenAI Assistants API is deprecated and will be removed by OpenAI on
2026-08-26. "
+ "The OpenAI Assistants API is deprecated and was removed by OpenAI on
2026-08-26. "
"Use the Responses API (create_response) and Conversations API
(create_conversation) instead. "
"See https://platform.openai.com/docs/guides/migrate-to-responses."
)
@@ -316,7 +316,7 @@ class OpenAIHook(BaseHook):
| ChatCompletionToolMessageParam
| ChatCompletionFunctionMessageParam
],
- model: str = "gpt-4o-mini",
+ model: str = "gpt-6-luna",
**kwargs: Any,
) -> list[ChatCompletionMessage]:
"""
@@ -328,7 +328,7 @@ class OpenAIHook(BaseHook):
response = self.conn.chat.completions.create(model=model,
messages=messages, **kwargs)
return response.choices
- def create_response(self, input: Any, model: str = "gpt-4o-mini",
**kwargs: Any) -> Response:
+ def create_response(self, input: Any, model: str = "gpt-6-luna", **kwargs:
Any) -> Response:
"""
Create a model response using the Responses API.
@@ -340,7 +340,7 @@ class OpenAIHook(BaseHook):
def parse_response(
self,
input: Any,
- model: str = "gpt-4o-mini",
+ model: str = "gpt-6-luna",
*,
text_format: type[_TextFormatT],
**kwargs: Any,
@@ -416,7 +416,7 @@ class OpenAIHook(BaseHook):
return self.conn.conversations.delete(conversation_id)
@deprecated(reason=_ASSISTANTS_DEPRECATION_REASON,
category=AirflowProviderDeprecationWarning)
- def create_assistant(self, model: str = "gpt-4o-mini", **kwargs: Any) ->
Assistant:
+ def create_assistant(self, model: str = "gpt-6-luna", **kwargs: Any) ->
Assistant:
"""
Create an OpenAI assistant using the given model.
diff --git a/providers/openai/src/airflow/providers/openai/operators/openai.py
b/providers/openai/src/airflow/providers/openai/operators/openai.py
index 202d311867e..41d129e4a0c 100644
--- a/providers/openai/src/airflow/providers/openai/operators/openai.py
+++ b/providers/openai/src/airflow/providers/openai/operators/openai.py
@@ -224,7 +224,7 @@ class OpenAIResponseOperator(BaseOperator):
self,
conn_id: str,
input_text: str | list[Any],
- model: str = "gpt-4o-mini",
+ model: str = "gpt-6-luna",
response_kwargs: dict | None = None,
*,
max_output_tokens: int | str | None = None,
diff --git
a/providers/openai/tests/system/openai/example_trigger_batch_operator.py
b/providers/openai/tests/system/openai/example_trigger_batch_operator.py
index 11e3ffd5de7..19d685c3aad 100644
--- a/providers/openai/tests/system/openai/example_trigger_batch_operator.py
+++ b/providers/openai/tests/system/openai/example_trigger_batch_operator.py
@@ -62,7 +62,7 @@ def openai_batch_chat_completions():
url: Literal["/v1/chat/completions"]
body: RequestBody
- model = "gpt-4o-mini"
+ model = "gpt-6-luna"
max_tokens = 1000
hook = OpenAIHook(conn_id=OPENAI_CONN_ID)
with tempfile.NamedTemporaryFile(mode="w", delete=False) as file:
diff --git a/providers/openai/tests/unit/openai/operators/test_openai.py
b/providers/openai/tests/unit/openai/operators/test_openai.py
index f65d4bcc9bd..dcd965d4844 100644
--- a/providers/openai/tests/unit/openai/operators/test_openai.py
+++ b/providers/openai/tests/unit/openai/operators/test_openai.py
@@ -332,7 +332,7 @@ class TestOpenAIResponseOperatorTokenCeilings:
operator.execute(_build_execute_context())
mock_hook_instance.create_response.assert_called_once_with(
- input="Write a haiku.", model="gpt-4o-mini", **expected_extra
+ input="Write a haiku.", model="gpt-6-luna", **expected_extra
)
@pytest.mark.parametrize(