Skip to content

Commit

Permalink
Limit cohere to <5 (#38348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis committed Mar 20, 2024
1 parent 8e7b1ad commit 3400dfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/cohere/hooks/cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
self.max_retries = max_retries

@cached_property
def get_conn(self) -> cohere.Client:
def get_conn(self) -> cohere.Client: # type: ignore[override]
conn = self.get_connection(self.conn_id)
return cohere.Client(
api_key=conn.password, timeout=self.timeout, max_retries=self.max_retries, api_url=conn.host
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/cohere/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ integrations:

dependencies:
- apache-airflow>=2.6.0
- cohere>=4.37
- cohere>=4.37,<5

hooks:
- integration-name: Cohere
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
"cohere": {
"deps": [
"apache-airflow>=2.6.0",
"cohere>=4.37"
"cohere>=4.37,<5"
],
"devel-deps": [],
"cross-providers-deps": [],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ cncf-kubernetes = [ # source: airflow/providers/cncf/kubernetes/provider.yaml
"kubernetes_asyncio>=28.1.0,<=29.0.0",
]
cohere = [ # source: airflow/providers/cohere/provider.yaml
"cohere>=4.37",
"cohere>=4.37,<5",
]
common-io = [] # source: airflow/providers/common/io/provider.yaml
common-sql = [ # source: airflow/providers/common/sql/provider.yaml
Expand Down

0 comments on commit 3400dfe

Please sign in to comment.