-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Updated integration docs #3392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated integration docs #3392
Conversation
|
||
# Configuration | ||
os.environ["OPENAI_API_KEY"] = "your-openai-api-key" | ||
os.environ["MEM0_API_KEY"] = "your-mem0-api-key" | ||
# os.environ["OPENAI_API_KEY"] = "your-openai-api-key" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for commenting this out? 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a load_dotenv() to get the environment variables. Which eliminates the need for the os.environ.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see but this particular snippet sets the envs not loads that, but I see your point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes so commented just in case to keep it as option there.
|
||
# Configuration | ||
OPENAI_API_KEY = 'sk-xxx' # Replace with your actual OpenAI API key | ||
MEM0_API_KEY = 'your-mem0-key' # Replace with your actual Mem0 API key | ||
# OPENAI_API_KEY = 'sk-xxx' # Replace with your actual OpenAI API key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we'll have to set these as environment vars for mem0 and openai sdk to pick this up automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but you can configure depending upon how you're using it. So I've commented the explicit call for the API Keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
Description
Updates the mem0 integration docs.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist:
Maintainer Checklist