Skip to content

Commit

Permalink
Fix split.
Browse files Browse the repository at this point in the history
  • Loading branch information
jondurbin committed Aug 23, 2023
1 parent ae6486d commit cd29c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airoboros/lmoe/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def complete_request(request):
skip_special_tokens=True,
clean_up_tokenization_spaces=False,
)[0]
.split("ASSISTANT:")[1]
.split("ASSISTANT:")[-1]
.strip()
)
response = re.sub(r"[\s\n]*(USER|ASSISTANT):\s*$", "", response, re.DOTALL)
Expand Down

0 comments on commit cd29c71

Please sign in to comment.