conversation
Conversation prompt templates.
We kindly request that you import fastchat instead of copying this file if you wish to use it. If you have any changes in mind, please contribute back so the community can benefit collectively and continue to maintain these valuable templates.
Classes
Separator styles. |
|
A class that manages prompt templates and keeps all conversation history. |
Functions
|
Register a new conversation template. |
|
Get a conversation template. |
Module Contents
- class conversation.Conversation[source]
A class that manages prompt templates and keeps all conversation history.
- conversation.register_conv_template(template: Conversation, override: bool = False)[source]
Register a new conversation template.
- conversation.get_conv_template(name: str) Conversation [source]
Get a conversation template.