Skip to content

[BUG] Unable to run examples/chat.py #802

@homeworkace

Description

@homeworkace

OS

Windows

GPU Library

CUDA 12.x

Python version

3.11

Pytorch version

2.7.1+cu128

Model

No response

Describe the bug

I copied the script at examples/chat.py and used the Oobabooga environment to run it. However, there are no modules called chat_formatting and chat_prompts. Does anyone know where they can be found? There are no other mentions in this repository, nor does it appear in PyPi or any Google searches.

Reproduction steps

  • Copy examples/chat.py as chat.py into the directory of text-generation-webui.
  • Open cmd_windows.bat.
  • python chat.py

Expected behavior

It runs without errors.

Logs

No response

Additional context

No response

Acknowledgements

  • I have looked for similar issues before submitting this one.
  • I understand that the developers have lives and my issue will be answered when possible.
  • I understand the developers of this program are human, and I will ask my questions politely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions