diff --git a/src/pipecat/processors/aggregators/llm_response_universal.py b/src/pipecat/processors/aggregators/llm_response_universal.py index 81dbfe844..6690a6e1e 100644 --- a/src/pipecat/processors/aggregators/llm_response_universal.py +++ b/src/pipecat/processors/aggregators/llm_response_universal.py @@ -833,7 +833,7 @@ class LLMAssistantAggregator(LLMContextAggregator): "id": frame.tool_call_id, "function": { "name": frame.function_name, - "arguments": json.dumps(frame.arguments), + "arguments": json.dumps(frame.arguments, ensure_ascii=False), }, "type": "function", } @@ -866,7 +866,7 @@ class LLMAssistantAggregator(LLMContextAggregator): # Update context with the function call result if frame.result: - result = json.dumps(frame.result) + result = json.dumps(frame.result, ensure_ascii=False) self._update_function_call_result(frame.function_name, frame.tool_call_id, result) else: self._update_function_call_result(frame.function_name, frame.tool_call_id, "COMPLETED")