Skip to content

Commit

Permalink
add colon two bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Dec 27, 2023
1 parent 851046f commit 00281b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatproto/conversation/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def create_add_colon_two(settings: ConversationSettings, system: Optional[str],
for i, (role, message) in enumerate(messages):
if message:
section = role + ": " + message + seps[i % 2]
prefix = ret + ": "
prefix = ret + role + ": "
indices.append((len(prefix), len(prefix) + len(message)))
else:
section = role + ":"
Expand Down

0 comments on commit 00281b8

Please sign in to comment.