Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/pinecone/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ requires-python = "~=3.9"
# After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
dependencies = [
"apache-airflow>=2.10.0",
"pinecone>=3.1.0",
"pinecone>=7.0.0",
]

[dependency-groups]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from functools import cached_property
from typing import TYPE_CHECKING, Any

from pinecone import Pinecone, PodSpec, ServerlessSpec
from pinecone import Pinecone, PodSpec, PodType, ServerlessSpec

from airflow.hooks.base import BaseHook

Expand Down Expand Up @@ -182,7 +182,7 @@ def get_pod_spec_obj(
replicas: int | None = None,
shards: int | None = None,
pods: int | None = None,
pod_type: str | None = "p1.x1",
pod_type: str | PodType = PodType.P1_X1,
metadata_config: dict | None = None,
source_collection: str | None = None,
environment: str | None = None,
Expand All @@ -203,7 +203,7 @@ def get_pod_spec_obj(
replicas=replicas,
shards=shards,
pods=pods,
pod_type=pod_type,
pod_type=pod_type if isinstance(pod_type, PodType) else PodType(pod_type),
metadata_config=metadata_config,
source_collection=source_collection,
)
Expand Down