fastchat.conversation
Conversation prompt templates. We kindly request that you import fastchat instead of copying this file if you want to use it. You can contribute back the changes you want to make.
Module Contents
Classes
Separator styles. |
|
A class that manages prompt templates and keeps all conversation history. |
Functions
|
Register a new conversation template. |
|
Get a conversation template. |
- class fastchat.conversation.Conversation[source]
A class that manages prompt templates and keeps all conversation history.
- fastchat.conversation.register_conv_template(template: Conversation, override: bool = False)[source]
Register a new conversation template.
- fastchat.conversation.get_conv_template(name: str) Conversation[source]
Get a conversation template.