Commit e5c9bc4
aj
fix(mcp): preserve non-ASCII text in JSON serialization
json.dumps calls in MCP tool return_value_as_string and
StreamElicitor.elicit were missing ensure_ascii=False, causing
non-ASCII characters (Japanese, Chinese, Korean, etc.) to be
escaped as \uXXXX sequences. This degrades LLM performance
when working with non-English text since models handle native
characters better than unicode escapes.
Fixes #69951 parent 13e144e commit e5c9bc4
File tree
2 files changed
+2
-2
lines changed- python/packages/autogen-ext/src/autogen_ext/tools/mcp
- _host
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments