-
- Downloads
refactor: enhance PineconeIndex API key handling and request headers
- Updated the constructor to retrieve the API key from environment variables if not provided. - Added a validation step to ensure the API key is present, raising a ValueError if missing. - Consolidated header management by using the instance's headers attribute for API requests, improving code clarity and maintainability.
Loading
Please register or sign in to comment