fix: content-type charset=utf-8 for proper Chinese encoding

This commit is contained in:
ymq 2026-08-08 21:46:15 +08:00
parent 62e7aea8b6
commit 08dc10620f

View File

@ -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: