zhongwanjun / MemoryBank-SiliconFriend

Source code and demo for memory bank and SiliconFriend
MIT License
178 stars 24 forks source link

error occurred #5

Closed ForrestPi closed 12 months ago

ForrestPi commented 1 year ago

MemoryBank-SiliconFriend/SiliconFriend-ChatGLM-BELLE/../utils/prompt_utils.py", line 127, in build_prompt_with_search_memory_chatglm_app query = dialog['query'] TypeError: list indices must be integers or slices, not str

ryuichi-sumida commented 1 year ago

I have the same error...

ryuichi-sumida commented 12 months ago

If you change it to

    query = dialog[0]
    response = dialog[1]

It should work!