From 90df95544179b9d10170b3edf954410bf49a7ac6 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Fri, 25 Oct 2024 10:40:03 -0400 Subject: [PATCH] rebase + swap to using Index.config instead of Index._config since the python-plugin-interface expects that field on target --- pinecone/data/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pinecone/data/index.py b/pinecone/data/index.py index 07845aac..3f63d046 100644 --- a/pinecone/data/index.py +++ b/pinecone/data/index.py @@ -97,16 +97,16 @@ def __init__( **kwargs, ) - self._config = ConfigBuilder.build( + self.config = ConfigBuilder.build( api_key=api_key, host=host, additional_headers=additional_headers, **kwargs ) - self._openapi_config = ConfigBuilder.build_openapi_config(self._config, openapi_config) + self._openapi_config = ConfigBuilder.build_openapi_config(self.config, openapi_config) self._pool_threads = pool_threads self._vector_api = setup_openapi_client( api_client_klass=ApiClient, api_klass=DataPlaneApi, - config=self._config, + config=self.config, openapi_config=self._openapi_config, pool_threads=self._pool_threads, api_version=API_VERSION, @@ -121,7 +121,7 @@ def _load_plugins(self): # try block just in case to make sure a bad plugin doesn't # halt client initialization. openapi_client_builder = build_plugin_setup_client( - config=self._config, + config=self.config, openapi_config=self._openapi_config, pool_threads=self._pool_threads, )