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.
2 parents 92173a5 + 2ecabdf commit 2e1fc9fCopy full SHA for 2e1fc9f
pinecone/config.py
@@ -137,8 +137,7 @@ def _preprocess_and_validate_config(self, config: dict) -> dict:
137
and raises ValueError in case an invalid value was specified.
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 config.items() if k in ConfigBase._fields}
+ result = {k: v for k, v in config.items() if k in ConfigBase._fields if v is not None}
142
result.pop('environment', None)
143
# validate api key
144
api_key = result.get('api_key')
0 commit comments