fix(sse): correct UTF-8 handling and chunking in SSE streaming\n\n- Updated splitContentIntoSegments to handle runes instead of bytes\n- Fixed buildWebUIStreamForwarder to send delta chunks instead of cumulative content\n- Ensures proper handling of multi-byte characters in SSE streams

This commit is contained in:
whlaoding
2026-03-14 01:41:51 +08:00
parent 60195f00a0
commit ea88e1dc18
7 changed files with 89 additions and 18 deletions

View File

@@ -21,6 +21,7 @@ FEISHU_LISTEN_ADDR=:8080
FEISHU_EVENT_PATH=/feishu/events
WEBUI_LISTEN_ADDR=:8090
WEBUI_MAX_UPLOAD_MB=20
WEBUI_EXPOSE_REASONING=false
LLM_BASE_URL=https://api.openai.com/v1
LLM_API_KEY=