fix: Turn off all ensure_ascii of json.dumps (#800)

This commit is contained in:
ifsheldon
2024-01-12 15:54:35 +08:00
committed by GitHub
parent 465f7af847
commit dd2f4fc873
23 changed files with 113 additions and 69 deletions

View File

@@ -1,5 +1,6 @@
import json
from memgpt.constants import JSON_ENSURE_ASCII
from memgpt.local_llm.function_parser import patch_function
import memgpt.system as system
@@ -32,7 +33,7 @@ EXAMPLE_FUNCTION_CALL_CORE_MEMORY_APPEND_MISSING = {
"content": "I'll append to memory.",
"function_call": {
"name": "core_memory_append",
"arguments": json.dumps({"content": "new_stuff"}),
"arguments": json.dumps({"content": "new_stuff"}, ensure_ascii=JSON_ENSURE_ASCII),
},
},
}