utkarsharma2 commented on code in PR #38465:
URL: https://github.com/apache/airflow/pull/38465#discussion_r1607936623
##########
airflow/providers/cohere/operators/embedding.py:
##########
@@ -58,11 +72,17 @@ def __init__(
self.input_text = input_text
self.timeout = timeout
self.max_retries = max_retries
+ self.request_options = request_options
@cached_property
def hook(self) -> CohereHook:
"""Return an instance of the CohereHook."""
- return CohereHook(conn_id=self.conn_id, timeout=self.timeout,
max_retries=self.max_retries)
+ return CohereHook(
+ conn_id=self.conn_id,
+ timeout=self.timeout,
+ max_retries=self.max_retries,
Review Comment:
Should we use `max_retries=self.max_retries` in the same PR we are
deprecating it? :)
--
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]