AmoghAtreya opened a new pull request, #70357:
URL: https://github.com/apache/airflow/pull/70357
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
### Description
Refactored `CohereEmbeddingOperator` and `PapermillOperator` to ensure
template fields are validated during execution or render time rather than
inside `__init__`, aligning with Airflow operator standards.
* Moved initialization checks dependent on template fields out of `__init__`.
* Updated corresponding unit tests in Cohere and Papermill provider test
suites.
* Removed `CohereEmbeddingOperator` and `PapermillOperator` entries from
`scripts/ci/prek/validate_operators_init_exemptions.txt`.
### Related Issue
closes: #70296
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (Gemini)
Generated-by: Gemini following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
---
* Read the **[Pull Request
Guidelines](https://github.0/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
for more information.
--
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]