Lee-W commented on code in PR #72151:
URL: https://github.com/apache/airflow/pull/72151#discussion_r4034413964


##########
providers/openai/src/airflow/providers/openai/operators/openai.py:
##########
@@ -272,6 +289,13 @@ def execute(self, context: Context) -> str:
                 response.status,
             )
         self.log.info("Generated response %s", response.id)
+        if self.do_xcom_push:

Review Comment:
   `usage` now includes `try_number` when not `None`. retries no longer 
silently under-report the tokens billed on earlier attempts.



-- 
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]

Reply via email to