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 0e46a99 + 4ce2b54 commit a92d794Copy full SHA for a92d794
pinecone/config.py
@@ -137,8 +137,8 @@ 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 result.items() if k in ConfigBase._fields}
+# result = {k.strip(): v.strip() for k, v in config.items() if v is not None}
+ 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