Skip to content

Commit e7f357b

Browse files
committed
fix the typo and add the line ending
1 parent 31d8b6e commit e7f357b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastchat/conversation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ def get_conv_template(name: str) -> Conversation:
23542354

23552355
print("\n")
23562356

2357-
print("-- Baling template --")
2357+
print("-- Bailing template --")
23582358
conv = get_conv_template("bailing")
23592359
conv.append_message(conv.roles[0], "Hello!")
23602360
conv.append_message(conv.roles[1], "Hi!")

fastchat/serve/api_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ def bailing_api_stream_iter(
13231323
with client.stream("POST", url, json=request, headers=headers) as resp:
13241324
if resp.status_code == 200:
13251325
for line in resp.iter_lines():
1326-
total_text += line
1326+
total_text += line + "\n"
13271327
yield {"text": total_text, "error_code": 0}
13281328
break
13291329
else:

0 commit comments

Comments
 (0)