YAshhh29 commented on code in PR #69812:
URL: https://github.com/apache/airflow/pull/69812#discussion_r4111578007
##########
providers/openai/src/airflow/providers/openai/operators/openai.py:
##########
@@ -111,8 +140,9 @@ class OpenAIResponseOperator(BaseOperator):
input items.
:param model: The OpenAI model to use.
:param response_kwargs: Additional keyword arguments to pass to the OpenAI
``create_response``
- method (for example ``instructions``, ``tools``, ``conversation`` or
``previous_response_id``).
- Templated, so values (e.g. ``previous_response_id``) may reference
upstream XCom.
+ method, or ``parse_response`` when ``text_format`` is set (for example
``instructions``,
+ ``tools``, ``conversation`` or ``previous_response_id``). Templated,
so values (e.g.
+ ``previous_response_id``) may reference upstream XCom.
Do not set ``background`` or ``stream`` here: ``background=True``
returns before the response
completes, so this operator logs a warning and the returned output
text may be empty, while
Review Comment:
Added the clause here, and the same sentence to the `background` note in the
guide so the two match.
--
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]