Skip to content
Snippets Groups Projects
  • Luca Mannini's avatar
    da9fbd97
    refactor: enhance PineconeIndex API key handling and request headers · da9fbd97
    Luca Mannini authored
    - 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.
    da9fbd97
    History
    refactor: enhance PineconeIndex API key handling and request headers
    Luca Mannini authored
    - 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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.