From 08dc10620fc533d6a56d87f192810ad10de4391e Mon Sep 17 00:00:00 2001 From: ymq Date: Sat, 8 Aug 2026 21:46:15 +0800 Subject: [PATCH] fix: content-type charset=utf-8 for proper Chinese encoding --- wwwroot/api/cockpit_chat.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index a5e5ef8..21d03b0 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -234,7 +234,7 @@ if action == 'send_message': yield d await sor.C('pipeline_conversations',{'id':getID(),'role':'agent','content':agent_reply,'msg_type':'text','org_id':org_id,'created_by':'system'}) - return await stream_response(request, agent_stream, 'text/plain') + return await stream_response(request, agent_stream, 'text/plain; charset=utf-8') elif action == 'list_messages': async with DBPools().sqlorContext(dbname) as sor: