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

Function get_conv_template

fastchat/conversation.py:410–412  ·  view source on GitHub ↗

Get a conversation template.

(name: str)

Source from the content-addressed store, hash-verified

408
409
410def get_conv_template(name: str) -> Conversation:
411 """Get a conversation template."""
412 return conv_templates[name].copy()
413
414
415# An empty template for raw conversation.

Callers 15

conversation.pyFile · 0.90
mainFunction · 0.90
make_conv_templateMethod · 0.90
new_chatFunction · 0.90
chat_loopFunction · 0.90
generateMethod · 0.90

Calls 1

copyMethod · 0.80

Tested by 1

mainFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…