File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,7 @@ async def invoke_mcp_tool(
116
116
if len (result .content ) == 1 :
117
117
tool_output = result .content [0 ].model_dump_json ()
118
118
elif len (result .content ) > 1 :
119
- tool_output = json .dumps (
120
- [item .model_dump () for item in result .content ],
121
- ensure_ascii = False
122
- )
119
+ tool_output = json .dumps ([item .model_dump () for item in result .content ])
123
120
else :
124
121
logger .error (f"Errored MCP tool result: { result } " )
125
122
tool_output = "Error running tool."
Original file line number Diff line number Diff line change @@ -393,8 +393,7 @@ def ensure_assistant_message() -> ChatCompletionAssistantMessageParam:
393
393
{
394
394
"queries" : file_search .get ("queries" , []),
395
395
"status" : file_search .get ("status" ),
396
- },
397
- ensure_ascii = False
396
+ }
398
397
),
399
398
},
400
399
)
You can’t perform that action at this time.
0 commit comments