Skip to content

Conversation

@SheenKocher
Copy link

@SheenKocher SheenKocher commented Dec 15, 2025

Description

This PR adds support for configuring SSL certificate verification when Mem0 initializes HTTP clients for both LLMs and embedding providers.

Currently, Mem0 creates HTTP clients internally but does not expose any configuration option to control SSL verification. This makes it difficult to use Mem0 with HTTPS endpoints that rely on self-signed or custom CA certificates without modifying library internals.

This change introduces a new ssl_verify configuration option (defaulting to True) and wires it consistently across LLM and embedding configurations. The default behavior remains unchanged unless explicitly configured.

Fixes #3833

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Manually tested by initializing Mem0 locally with ssl_verify enabled(True) , disabled(False) and custom path for both LLM and embedding configurations.
  • Verified that Mem0 initializes successfully without errors and that the new configuration is accepted by the LLM and embedding factories.

To reproduce:

  1. Install Mem0 in editable mode (pip install -e .)
  2. Run a local script initializing Memory.from_config() with ssl_verify set to True and False
  3. Confirm successful initialization without exceptions
  • Unit Test
  • Test Script (manual verification)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

@CLAassistant
Copy link

CLAassistant commented Dec 15, 2025

CLA assistant check
All committers have signed the CLA.

@SheenKocher
Copy link
Author

Hello ,
Just a gentle follow up on this PR . Please let me know if any changes or clarifications are needed .
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants