KEMBAR78
Error when switching chat mode. · Issue #7155 · oobabooga/text-generation-webui · GitHub
Skip to content

Error when switching chat mode. #7155

@Alekkc

Description

@Alekkc

Describe the bug

Performed a clean installation of Webui. Launched. Opened "Chat Tab". Switched the mode from Instruct to Chat-instruct. An error message appeared in the console:

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

Launched. Opened "Chat Tab". Switched the mode from Instruct to Chat-instruct. An error message appeared in the console

Screenshot

No response

Logs

Running on local URL:  http://127.0.0.1:7860

Traceback (most recent call last):
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\gradio\queueing.py", line 541, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\gradio\blocks.py", line 1928, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\gradio\blocks.py", line 1514, in call_function
    prediction = await anyio.to_thread.run_sync(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\installer_files\env\Lib\site-packages\gradio\utils.py", line 833, in wrapper
    response = f(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\modules\ui.py", line 298, in gather_interface_values
    output['history'] = load_history(output['unique_id'], output['character_menu'], output['mode'])
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\llm\text-generation-webui\modules\chat.py", line 1178, in load_history
    f = json.loads(open(p, 'rb').read())
                   ^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'user_data\\logs\\chat\\Assistant\\20250723-23-57-18.json'

System Info

Windows 10/ RTX 4070ti super

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions