fix(tui): accept compact SSE data fields

Accept SSE data frames with either `data: {...}` or `data:{...}` in Chat Completions, Responses, and Anthropic stream readers.

Harvested from PR #3152.

Co-authored-by: wgeeker <169752135+wgeeker@users.noreply.github.com>
This commit is contained in:
Hunter B
2026-06-12 02:31:31 -07:00
parent c1a48492b6
commit 2f717d3345
6 changed files with 40 additions and 3 deletions
+4
View File
@@ -49,6 +49,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- **SSE data lines without spaces (#3152).** Chat Completions, Responses, and
Anthropic stream readers now accept both `data: {...}` and `data:{...}` SSE
frames, matching the spec and preventing providers that omit the optional
space from streaming empty output. Thanks @wgeeker for the PR.
- **SiliconFlow China provider config (#2893/#2895).** `siliconflow-CN`
now reads its own `[providers.siliconflow_cn]` / `[providers.siliconflow-CN]`
table and falls back to `[providers.siliconflow]` only for unset