MannXo opened a new pull request, #70325: URL: https://github.com/apache/airflow/pull/70325
Move the single-string normalization of `input_text` from `__init__` into `execute()`. `input_text` is a template field, so it is rendered after the constructor runs. Wrapping a plain string into a list in `__init__` acts on the un-rendered Jinja expression, so a templated `input_text` (for example one that resolves to a list under native rendering) is normalized before it is ever rendered. Doing it in `execute()` operates on the rendered value. Part of the template-field constructor burn-down; removes the `CohereEmbeddingOperator` entry from `scripts/ci/prek/validate_operators_init_exemptions.txt` in the same PR, as the hook requires. related: #70296 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
