Skip to content

Commit 96a1aec

Browse files
committed
fix: add ensure_ascii=False to json.dumps for correct Unicode output
1 parent f976349 commit 96a1aec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents/models/openai_responses.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ async def _fetch_response(
231231
else:
232232
logger.debug(
233233
f"Calling LLM {self.model} with input:\n"
234-
f"{json.dumps(list_input, indent=2)}\n"
235-
f"Tools:\n{json.dumps(converted_tools.tools, indent=2)}\n"
234+
f"{json.dumps(list_input, indent=2, ensure_ascii=False)}\n"
235+
f"Tools:\n{json.dumps(converted_tools.tools, indent=2, ensure_ascii=False)}\n"
236236
f"Stream: {stream}\n"
237237
f"Tool choice: {tool_choice}\n"
238238
f"Response format: {response_format}\n"

0 commit comments

Comments
 (0)