You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Problem
We want to remove the `openapi_config` config property because we don't
want generated openapi stuff in the public interface. This is a holdover
from the v2 days of `pinecone.init()` but has never been documented; I
would be surprised if anyone is actually using it.
## Solution
- Convert deprecation warning into an exception
- Remove unit tests relying on this deprecated option
## Type of Change
- [x] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
Copy file name to clipboardExpand all lines: pinecone/control/pinecone.py
+2-3
Original file line number
Diff line number
Diff line change
@@ -214,9 +214,8 @@ def __init__(
214
214
)
215
215
216
216
ifkwargs.get("openapi_config", None):
217
-
warnings.warn(
218
-
"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 https://github.com/pinecone-io/pinecone-python-client for examples.",
219
-
DeprecationWarning,
217
+
raiseException(
218
+
"Passing openapi_config is no longer supported. 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 https://github.com/pinecone-io/pinecone-python-client for examples.",
0 commit comments