MCPcopy Create free account
hub / github.com/WangHanLinHenry/SPA-RL-Agent / flush

Method flush

fastchat/utils.py:107–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 self.linebuf += line
106
107 def flush(self):
108 if self.linebuf != "":
109 encoded_message = self.linebuf.encode("utf-8", "ignore").decode("utf-8")
110 self.logger.log(self.log_level, encoded_message.rstrip())
111 self.linebuf = ""
112
113
114def disable_torch_init():

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected