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 a7a4c9c commit 8ad15c9Copy full SHA for 8ad15c9
pinecone/config.py
@@ -136,8 +136,7 @@ def _preprocess_and_validate_config(self, config: dict) -> dict:
136
and raises ValueError in case an invalid value was specified.
137
"""
138
# general preprocessing and filtering
139
- result = {k.strip(): v.strip() for k, v in config.items() if v is not None}
140
- 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 if v is not None}
141
result.pop('environment', None)
142
# validate api key
143
api_key = result.get('api_key')
0 commit comments