mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

DOC: Python SDK quickstart example not working

Open zseta opened this issue 1 month ago • 4 comments

Issue with current documentation:

This page: https://docs.mem0.ai/open-source/python-quickstart

This example:

from mem0 import Memory

m = Memory(api_key="your-openai-api-key")

does not work. Error:

TypeError: Memory.__init__() got an unexpected keyword argument 'api_key'

zseta avatar Nov 11 '25 15:11 zseta

Hey @zseta thanks for flagging this , adding the fix asap

in the meantime ,

# Set your openai API key in ENV 
export OPENAI_API_KEY="skj...."

and then just initialise the whole config with

m = Memory() 

No params needed

parthshr370 avatar Nov 12 '25 13:11 parthshr370

Hey @parthshr370 , I’d like to work on fixing this issue. Could you please assign this to me?

ParagGhatage avatar Nov 12 '25 15:11 ParagGhatage

hey @ParagGhatage thanks for the concern but its already solved in https://github.com/mem0ai/mem0/pull/3742 !

you can take a look at other documentation PRs if you want to contribute , with tags

parthshr370 avatar Nov 12 '25 15:11 parthshr370

@parthshr370 , Thanks for the update! I’ll look for another issue to work on.

ParagGhatage avatar Nov 12 '25 21:11 ParagGhatage