Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mem0 OSSでTokenLabをOpenAI互換LLMプロバイダーとして使用する
provider: "openai"
openai_base_url
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
import os from mem0 import Memory config = { "llm": { "provider": "openai", "config": { "model": "claude-sonnet-5", "api_key": os.environ["TOKENLAB_API_KEY"], "openai_base_url": "https://api.tokenlab.sh/v1", "temperature": 0.1, }, }, "vector_store": { "provider": "qdrant", "config": {"host": "localhost", "port": 6333}, }, } memory = Memory.from_config(config)
memory.add("The user prefers concise engineering summaries.", user_id="demo") results = memory.search("How should I answer?", user_id="demo") print(results)