MCPcopy
hub / github.com/lm-sys/FastChat / register_conv_template

Function register_conv_template

fastchat/conversation.py:400–407  ·  view source on GitHub ↗

Register a new conversation template.

(template: Conversation, override: bool = False)

Source from the content-addressed store, hash-verified

398
399
400def register_conv_template(template: Conversation, override: bool = False):
401 """Register a new conversation template."""
402 if not override:
403 assert (
404 template.name not in conv_templates
405 ), f"{template.name} has been registered."
406
407 conv_templates[template.name] = template
408
409
410def get_conv_template(name: str) -> Conversation:

Callers 1

conversation.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…