MCPcopy
hub / github.com/bigcode-project/starcoder / get_dialogue_template

Function get_dialogue_template

chat/dialogues.py:199–202  ·  view source on GitHub ↗
(template: str)

Source from the content-addressed store, hash-verified

197
198
199def get_dialogue_template(template: str) -> DialogueTemplate:
200 if template not in SUPPORTED_DIALOGUE_TEMPLATES.keys():
201 raise ValueError(f"Template {template} is not supported!")
202 return SUPPORTED_DIALOGUE_TEMPLATES[template].copy()
203
204
205def prepare_dialogue(example, dialogue_template, is_train=True):

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected