Skip to content

Commit 26bda17

Browse files
authored
Support for Non-ASCII characters in tool output. (#80)
1 parent 53bacd6 commit 26bda17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lmstudio/json_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ def request_tool_call(
13921392
def _call_requested_tool() -> ToolCallResultData:
13931393
call_result = implementation(**kwds)
13941394
return ToolCallResultData(
1395-
content=json.dumps(call_result), tool_call_id=tool_call_id
1395+
content=json.dumps(call_result, ensure_ascii=False), tool_call_id=tool_call_id
13961396
)
13971397

13981398
return _call_requested_tool

0 commit comments

Comments
 (0)