cpacker / MemGPT

Letta (fka MemGPT) is a framework for creating stateful LLM services.

Home Page:https://letta.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'NoneType' object has no attribute 'model'

tyler-suard-parker opened this issue · comments

Describe the bug
I am trying to follow the tutorial for setting up MemGPT with AutoGen here: https://memgpt.readme.io/docs/autogen
Please describe your setup

  • pip install pymemgpt? pip install pymemgpt-nightly? git clone?
  • Describe your setup
    Windows 11

Screenshots
image

Additional context
As you can see in my code the model is defined, why is it saying the model is none?

I am using openai, here is my code:

config_list_memgpt = [
    {
        "preset": "memgpt_chat",  
        "model": "gpt-4",  
        "model_wrapper": None,
        "context_window": 8192,  
        "model_endpoint_type": "azure",
        "azure_key": os.getenv("AZURE_OPENAI_API_KEY"),
        "azure_endpoint": os.getenv("AZURE_OPENAI_ENDPOINT"),
        "azure_version": os.getenv("AZURE_OPENAI_VERSION"),
        "embedding_embedding_endpoint_type": "azure",
    }
]

llm_config_memgpt = {"config_list": config_list_memgpt}

interface_kwargs = {
    "debug": False,
    "show_inner_thoughts": True,
    "show_function_outputs": False,
}

memgpt_autogen_agent = create_memgpt_autogen_agent_from_config(
    "MemGPT_agent",
    llm_config=llm_config_memgpt,
    system_message="""You are a helpful assistant.""",
    interface_kwargs=interface_kwargs,
    default_auto_reply="Pass.",
    skip_verify=False,
    auto_save=True,
)