You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function_utils.autogen. serialize_to_str(x: Any) -> str, if the parameter is list Chinese string, in the case of x meets Chinese, it will go to json.dumps(x), at this time, it will appear that the parameter x is ascii, instead of the original parameter value. For example, if x:["中文"], it will return: '["\\u4e2d\\u6587"]''
solution:json.dumps(x)->json.dumps(x,ensure_ascii=False)
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
function_utils.autogen. serialize_to_str(x: Any) -> str, if the parameter is list Chinese string, in the case of x meets Chinese, it will go to json.dumps(x), at this time, it will appear that the parameter x is ascii, instead of the original parameter value. For example, if x:["中文"], it will return: '["\\u4e2d\\u6587"]''
solution:json.dumps(x)->json.dumps(x,ensure_ascii=False)
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: