Skip to content

AttributeError: 'MemuClient' object has no attribute 'chat' #68

@sazima

Description

@sazima
from memu import MemuClient

# Initialize MemU client
memu_client = MemuClient(
    base_url="https://api.memu.so",
    api_key=api_key
)

# Verify connection
while True:
    user_input = input("User: ")

    response = memu_client.chat(
        user_id='test_user1',
        agent_id='test_agent1',
        message=user_input
    )
    print(f"Assistant: {response}")

I ran the example in the document (https://memu.pro/docs#responseapi), but I got an error


User: ddd
Traceback (most recent call last):
  File "/home/cent/test/aiiiiii/memu_helloworld.py", line 15, in <module>
    response = memu_client.chat(
               ^^^^^^^^^^^^^^^^
AttributeError: 'MemuClient' object has no attribute 'chat'


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions