Unverified Commit 96f5e58f authored by achervyakov's avatar achervyakov Committed by GitHub
Browse files

change ensure_ascii to False for JsonChatStr (#2691)

parent 8751fb35
...@@ -265,7 +265,7 @@ class TemplateAPI(TemplateLM): ...@@ -265,7 +265,7 @@ class TemplateAPI(TemplateLM):
) )
else: else:
# bit of a hack. We'll load back before sending to the API # bit of a hack. We'll load back before sending to the API
return JsonChatStr(json.dumps(chat_history)) return JsonChatStr(json.dumps(chat_history, ensure_ascii=False))
@cached_property @cached_property
def eot_token_id(self) -> Optional[int]: def eot_token_id(self) -> Optional[int]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment