Skip to content

Conversation

olegshulyakov
Copy link
Owner

  • Remove @sec-ant/readable-stream and textlinestream dependencies
  • Implement native SSE stream processing using ReadableStream and TextDecoder
  • Add proper SSE message parsing with data, error, event, id, and retry fields
  • Add proper type definitions for SSE messages and chat completion streams
  • Update BaseOpenAIProvider to use new processSSEStream function
  • Convert TimingReport fields to optional to handle missing data gracefully
  • Update chat context to handle both timings and usage data structures
  • Improve ChatMessage component to conditionally render timing information

…th native stream processing

- Remove @sec-ant/readable-stream and textlinestream dependencies
- Implement native SSE stream processing using ReadableStream and TextDecoder
- Add proper SSE message parsing with data, error, event, id, and retry fields
- Add proper type definitions for SSE messages and chat completion streams
- Update BaseOpenAIProvider to use new processSSEStream function
- Convert TimingReport fields to optional to handle missing data gracefully
- Update chat context to handle both timings and usage data structures
- Improve ChatMessage component to conditionally render timing information
@olegshulyakov olegshulyakov changed the title refactor(api): replace @sec-ant/readable-stream and textlinestream with native stream processing refactor(api): replace SSE processing with native stream processing Sep 29, 2025
@olegshulyakov olegshulyakov merged commit 39f29f8 into main Sep 29, 2025
10 checks passed
@olegshulyakov olegshulyakov deleted the refactor/api-sse-processing branch September 29, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant