Docs: set api_key to env (#2252)

This commit is contained in:
Dev Khant
2025-02-24 13:42:39 +05:30
committed by GitHub
parent 1be0d70d02
commit b5d00e9b6c
5 changed files with 20 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ os.environ["MEM0_API_KEY"] = "your-mem0-api-key"
# Initialize LangChain and Mem0
llm = ChatOpenAI(model="gpt-4o-mini")
mem0 = MemoryClient(api_key=os.environ["MEM0_API_KEY"])
mem0 = MemoryClient()
```
## Create Prompt Template