Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618 2024-01-21 22:59:44 +08:00
parent 79796456c3
commit 5a8cbf496f

View File

@ -247,6 +247,9 @@ class ChatGPTAPI(Base):
new_lines.append(" ".join(temp_line))
text = "\n".join(new_lines)
# try to fix #372
if not text:
return ""
# del ^M
text = text.replace("^M", "\r")