mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
[PR #1882] [MERGED] feat: use spec compliant SSE parser for OpenAI responses #7622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1882
Author: @cheahjs
Created: 4/30/2024
Status: ✅ Merged
Merged: 4/30/2024
Merged by: @tjbck
Base:
dev← Head:feat/harden-streaming-parser📝 Commits (2)
e8bf596feat: switch OpenAI SSE parsing to eventsource-parserb3ccabdfix: add missing type for splitLargeChunks📊 Changes
6 files changed (+41 additions, -44 deletions)
View changed files
📝
package-lock.json(+9 -0)📝
package.json(+1 -0)📝
src/lib/apis/streaming/index.ts(+26 -28)📝
src/lib/stores/index.ts(+1 -0)📝
src/routes/(app)/+page.svelte(+2 -8)📝
src/routes/(app)/c/[id]/+page.svelte(+2 -8)📄 Description
Pull Request Checklist
Description
Switch to using eventsource-parser instead of our homegrown SSE parser, so that parsing is a lot more robust (even though I have not seen any LLM provider use the multiline capability of SSE so far)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.