Skip to content

Deprecate OpenAI Assistants and Threads hook methods#69071

Merged
kaxil merged 1 commit into
apache:mainfrom
astronomer:openai-provider-deprecate-assistants
Jun 27, 2026
Merged

Deprecate OpenAI Assistants and Threads hook methods#69071
kaxil merged 1 commit into
apache:mainfrom
astronomer:openai-provider-deprecate-assistants

Conversation

@kaxil

@kaxil kaxil commented Jun 27, 2026

Copy link
Copy Markdown
Member

Deprecate the OpenAI Assistants and Threads hook methods. OpenAI has deprecated the Assistants API (beta.assistants / beta.threads) and will remove it on 2026-08-26; the 16 hook methods wrapping it now emit AirflowProviderDeprecationWarning pointing at the Responses and Conversations APIs added in #69070.

Stacked on #69070 (itself stacked on #69068). Review the latest commit; the earlier commits are #69070/#69068 and drop out as they merge.

What changes

  • @deprecated on the 16 beta.assistants.* / beta.threads.* hook methods (assistant / thread / message / run CRUD), with a shared reason string pointing to create_response / create_conversation and the upstream removal date.
  • No removal yet -- these methods keep working until OpenAI removes the endpoint; this is the warning step.
  • Existing tests for the deprecated methods now assert the warning via pytest.warns.

Follow-up

Once OpenAI removes the Assistants API (2026-08-26), a follow-up can convert these to a clear "removed by OpenAI -- use Responses/Conversations" error rather than a warning that points at a date already passed.

Related:

@kaxil kaxil force-pushed the openai-provider-deprecate-assistants branch from b056a62 to 82b9d8a Compare June 27, 2026 02:03
The OpenAI Assistants API (beta.assistants/beta.threads) is deprecated
by OpenAI and scheduled for removal on 2026-08-26. Warn on the hook
methods wrapping it and point users at the Responses and Conversations
APIs (create_response/create_conversation).
@kaxil kaxil force-pushed the openai-provider-deprecate-assistants branch from 82b9d8a to a5298d7 Compare June 27, 2026 10:43
@kaxil kaxil merged commit e1c6feb into apache:main Jun 27, 2026
77 checks passed
@kaxil kaxil deleted the openai-provider-deprecate-assistants branch June 27, 2026 11:38
karenbraganz pushed a commit to karenbraganz/airflow that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants