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
When I build an Agent using a tool and the tool returns Chinese characters, sometimes there may be encoding issues that prevent Chinese characters from being recognized correctly. I hope to add a parameter to solve the Chinese encoding problem.
For example, parameters such as: json.dumps (content, ensure_ascii=False).
The text was updated successfully, but these errors were encountered:
Of course, the relevant problem points have been identified through debugging. Just add one parameter and modify line 138 in the phi/model/ollama/tools.py file.
json.dumps ({"name": _fc_message. tool_name, "content": _fc_message.content}, ensure_ascii=False)
Chinese output could be correctly
When I build an Agent using a tool and the tool returns Chinese characters, sometimes there may be encoding issues that prevent Chinese characters from being recognized correctly. I hope to add a parameter to solve the Chinese encoding problem.
For example, parameters such as: json.dumps (content, ensure_ascii=False).
The text was updated successfully, but these errors were encountered: