Skip to content
Snippets Groups Projects
Commit da9fbd97 authored by Luca Mannini's avatar Luca Mannini
Browse files

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.
parent 787943cb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment