Skip to content

Commit

Permalink
rebase + swap to using Index.config instead of Index._config since th…
Browse files Browse the repository at this point in the history
…e python-plugin-interface expects that field on target
  • Loading branch information
austin-denoble committed Oct 25, 2024
1 parent a0fb287 commit 90df955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pinecone/data/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
)
Expand Down

0 comments on commit 90df955

Please sign in to comment.