DOC: Python SDK quickstart example not working
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'
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
Hey @parthshr370 , I’d like to work on fixing this issue. Could you please assign this to me?
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
@parthshr370 , Thanks for the update! I’ll look for another issue to work on.