Apply ensure_ascii=False to remaining LLM services and fix changelog format

This commit is contained in:
Mark Backman
2026-03-12 10:34:29 -04:00
parent 765fbeec63
commit 1fe1f0f439
5 changed files with 9 additions and 20 deletions

View File

@@ -1044,7 +1044,9 @@ class AWSNovaSonicLLMService(LLMService):
"toolResult": {
"promptName": self._prompt_name,
"contentName": content_name,
"content": json.dumps(result) if isinstance(result, dict) else result,
"content": json.dumps(result, ensure_ascii=False)
if isinstance(result, dict)
else result,
}
}
}

View File

@@ -200,7 +200,9 @@ class GoogleAssistantContextAggregator(OpenAIAssistantContextAggregator):
if message.role == "user":
for part in message.parts:
if part.function_response and part.function_response.id == tool_call_id:
part.function_response.response = {"value": json.dumps(result)}
part.function_response.response = {
"value": json.dumps(result, ensure_ascii=False)
}
@dataclass

View File

@@ -939,7 +939,7 @@ class GrokRealtimeLLMService(LLMService):
item = events.ConversationItem(
type="function_call_output",
call_id=tool_call_id,
output=json.dumps(result),
output=json.dumps(result, ensure_ascii=False),
)
await self.send_client_event(events.ConversationItemCreateEvent(item=item))

View File

@@ -1128,7 +1128,7 @@ class OpenAIRealtimeLLMService(LLMService):
item = events.ConversationItem(
type="function_call_output",
call_id=tool_call_id,
output=json.dumps(result),
output=json.dumps(result, ensure_ascii=False),
)
await self.send_client_event(events.ConversationItemCreateEvent(item=item))