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

Function reload_conv

fastchat/serve/inference.py:400–406  ·  view source on GitHub ↗

Reprints the conversation from the start.

(conv)

Source from the content-addressed store, hash-verified

398 return conv
399
400 def reload_conv(conv):
401 """
402 Reprints the conversation from the start.
403 """
404 for message in conv.messages[conv.offset :]:
405 chatio.prompt_for_output(message[0])
406 chatio.print_output(message[1])
407
408 conv = None
409

Callers 1

chat_loopFunction · 0.85

Calls 2

prompt_for_outputMethod · 0.45
print_outputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…