Loading of complex_memory extension throws the error:
--Unable to load complex memories for character Assistant. filename: characters/Assistant.json. Using defaults.
Traceback (most recent call last):
File "text-generation-webui/server.py", line 247, in
create_interface()
File "text-generation-webui/server.py", line 153, in create_interface
extensions_module.create_extensions_block() # Extensions block
File "text-generation-webui/modules/extensions.py", line 192, in create_extensions_block
extension.ui()
File "text-generation-webui/extensions/complex_memory/script.py", line 257, in ui
[shared.gradio[k] for k in ['name1', 'name2', 'character_picture', 'greeting', 'context', 'dummy']]).then(
File "text-generation-webui/extensions/complex_memory/script.py", line 257, in
[shared.gradio[k] for k in ['name1', 'name2', 'character_picture', 'greeting', 'context', 'dummy']]).then(
KeyError: 'dummy'
I was able to clear the error by updating the code
from:
[shared.gradio[k] for k in ['character_menu', 'name1', 'name2']],
[shared.gradio[k] for k in ['name1', 'name2', 'character_picture', 'greeting', 'context', 'dummy']]).then(
chat.redraw_html, shared.reload_inputs, shared.gradio['display']).then(pairs_loaded, None, memory_select)
to:
[shared.gradio[k] for k in ['character_menu', 'name1', 'name2'] if k in shared.gradio],
[shared.gradio[k] for k in ['name1', 'name2', 'character_picture', 'greeting', 'context', 'dummy'] if k in shared.gradio]).then(
chat.redraw_html, shared.reload_inputs, shared.gradio['display']).then(pairs_loaded, None, memory_select)
but then, on character file upload to text-generation-webui, it will throw the error:
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1185, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 661, in wrapper
response = f(*args, **kwargs)
File "text-generation-webui/extensions/complex_memory/script.py", line 157, in load_character_complex_memory_hijack
result = chat.load_character(character_menu, name1, name2, False)
TypeError: load_character() takes 3 positional arguments but 4 were given