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

Function new_chat

fastchat/serve/inference.py:391–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389
390 # Chat
391 def new_chat():
392 if conv_template:
393 conv = get_conv_template(conv_template)
394 else:
395 conv = get_conversation_template(model_path)
396 if conv_system_msg is not None:
397 conv.set_system_message(conv_system_msg)
398 return conv
399
400 def reload_conv(conv):
401 """

Callers 1

chat_loopFunction · 0.85

Calls 3

get_conv_templateFunction · 0.90
set_system_messageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…