mem0_logo

Enabling Long Term Memory

If you would like Maitai to create, store, and search core memories, it’s as simple as passing a user_id to your Chat Completions Request.

The user_id should represent a unique identifier for the user. We will make sure the user memories are only accessible by the same application that created the memories.

{
        "id": "chatcmpl-123",
        "object": "chat.completion",
        "created": 1677652288,
        "model": "llama3-70b-8192",
        "system_fingerprint": "fp_44709d6fcb",
        "choices": [{
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "You ordered a Double Bacon Cheeseburger with extra pickles last time. Would like like to order that again?",
            },
            "logprobs": null,
            "finish_reason": "stop"
        }],
        "usage": {
            "prompt_tokens": 9,
            "completion_tokens": 12,
            "total_tokens": 21
        }
    }