fix: "Object of type datetime is not JSON serializable" error in mcp chat

This commit is contained in:
ulleo
2025-11-25 18:21:06 +08:00
committed by ulleo
parent 7b3b45e374
commit 88c885aaa9
+1 -1
View File
@@ -1047,7 +1047,7 @@ class LLMService:
if in_chat:
yield 'data:' + orjson.dumps({'content': 'execute-success', 'type': 'sql-data'}).decode() + '\n\n'
if not stream:
json_result['data'] = result.get('data')
json_result['data'] = get_chat_chart_data(_session, self.record.id)
if finish_step.value <= ChatFinishStep.QUERY_DATA.value:
if stream: