We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93d1c51 commit d1065b4Copy full SHA for d1065b4
fastchat/serve/cli.py
@@ -58,8 +58,15 @@ def stream_output(self, output_stream):
58
if now > pre:
59
print(" ".join(output_text[pre:now]), end=" ", flush=True)
60
pre = now
61
- print(" ".join(output_text[pre:]), flush=True)
62
- return " ".join(output_text)
+ # print(" ".join(output_text[pre:]), flush=True)
+ # return " ".join(output_text)
63
+ relevant_output.append(" ".join(output_text[pre:]))
64
+ self._stored_output = " ".join(output_text) # Store the entire output in the variable
65
+
66
+ return self._stored_output
67
68
+ def get_relevant_output(self) -> str:
69
70
71
72
class RichChatIO(ChatIO):
0 commit comments