pinecone-client version: 3.2.1
Index type: Serverless
We just started a PoC to see if Pinecone Serverless will meet our needs for our semantic search needs and are going through the quickstart.
Upon creating a new index, the python client shows the following warning:
warnings.warn(“Passing openapi_config is deprecated and will be removed in a future release. Please pass settings such as proxy_url, proxy_headers, ssl_ca_certs, and ssl_verify directly to the Pinecone constructor as keyword arguments. See the README at GitHub - pinecone-io/pinecone-python-client: The Pinecone Python client for examples.”, DeprecationWarning)
The initialization code is mostly straight out from the quickstart.
Code snippet:
pinecone = Pinecone(api_key=os.getenv('PINECONE_API_KEY'))
pinecone.create_index(
name=index_name,
dimension=dimension,
metric="euclidean",
spec=ServerlessSpec(
cloud='aws',
region='us-east-1'
)
)
index = pinecone.Index(name=index_name)
It is very odd, as
- We are not passing openapi_config arg
- Looks like the client is automatically setting openapi_config. For example, if I try to pass index = pinecone.Index(name=index_name, openapi_config=None), it complains that there are duplicate values for openapi_config.
Does anyone have the same issue?
How could I suppress the client auto-setting openapi_config?