We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8bc8d6 commit ec8c806Copy full SHA for ec8c806
openhands-sdk/openhands/sdk/llm/utils/telemetry.py
@@ -297,8 +297,8 @@ def log_llm_call(
297
and "tools" in data["kwargs"]
298
):
299
data["kwargs"].pop("tools")
300
- with open(fname, "w") as f:
301
- f.write(json.dumps(data, default=_safe_json))
+ with open(fname, "w", encoding="utf-8") as f:
+ f.write(json.dumps(data, default=_safe_json, ensure_ascii=False))
302
except Exception as e:
303
warnings.warn(f"Telemetry logging failed: {e}")
304
0 commit comments