Clean up streaming code (#1133)
Co-authored-by: Seth Weidman <sethweidman@Seths-MacBook-Pro.local>
This commit is contained in:
parent
43bd32a3ee
commit
a92a1d2fab
1 changed files with 1 additions and 1 deletions
|
|
@ -553,7 +553,7 @@
|
||||||
"print(f\"Full response received {chunk_time:.2f} seconds after request\")\n",
|
"print(f\"Full response received {chunk_time:.2f} seconds after request\")\n",
|
||||||
"# clean None in collected_messages\n",
|
"# clean None in collected_messages\n",
|
||||||
"collected_messages = [m for m in collected_messages if m is not None]\n",
|
"collected_messages = [m for m in collected_messages if m is not None]\n",
|
||||||
"full_reply_content = ''.join([m for m in collected_messages])\n",
|
"full_reply_content = ''.join(collected_messages)\n",
|
||||||
"print(f\"Full conversation received: {full_reply_content}\")\n"
|
"print(f\"Full conversation received: {full_reply_content}\")\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue