kaxil opened a new pull request, #69071: URL: https://github.com/apache/airflow/pull/69071
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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
