We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a00a4f commit 4ce2b54Copy full SHA for 4ce2b54
pinecone/config.py
@@ -138,7 +138,7 @@ def _preprocess_and_validate_config(self, config: dict) -> dict:
138
"""
139
# general preprocessing and filtering
140
# result = {k.strip(): v.strip() for k, v in config.items() if v is not None}
141
- result = {k: v for k, v in result.items() if k in ConfigBase._fields}
+ result = {k: v for k, v in config.items() if k in ConfigBase._fields}
142
result.pop('environment', None)
143
# validate api key
144
api_key = result.get('api_key')
0 commit comments