mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

Support setting openai base url in OpenMemory MCP

Open FradSer opened this issue 7 months ago • 3 comments

Description

Added OPENAI_BASE_URL configuration to config.py and updated OpenAI client instantiation in categorization.py to use it when set. This enables flexible switching of OpenAI endpoints for different environments, supporting environment-based configuration.

Type of change

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

Checklist:

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

FradSer avatar May 15 '25 07:05 FradSer

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 15 '25 07:05 CLAassistant

Hey @FradSer, can you please sign the CLA so that we can review this PR?

deshraj avatar May 15 '25 07:05 deshraj

@deshraj Please continue with the next steps, thank you

mkdir700 avatar May 22 '25 12:05 mkdir700

@deshraj Just wanted to gently check in on this pull request. Please let me know if there are any questions or changes I can help with.

FradSer avatar Jun 28 '25 02:06 FradSer