-
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
TanStack AI version
v0.2.0
Framework/Library version
React v19.2.3
Describe the bug and the steps to reproduce it
The toServerSentEventsResponse function is documented in the latest documentation and exists in the main branch, but it's not available in the published npm package @tanstack/ai@0.2.0.
Steps to reproduce:
- Install @tanstack/ai@0.2.0
- Try to import:
import { toServerSentEventsResponse } from "@tanstack/ai" - Get error:
toServerSentEventsResponse is not exported from @tanstack/ai
The documentation (updated 2 days ago) shows this function as the recommended way to convert streams to SSE responses, but the npm package (released 4 days ago) doesn't include it.
The function exists in the main branch at packages/typescript/ai/src/stream-to-response.ts but wasn't included in the v0.2.0 release.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/devbox/2mmljw?file=%2Fapp%2Fapi%2Fchat%2Froute.ts%3A1%2C16-1%2C42
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
sajag-upplft and antonio-pas
Metadata
Metadata
Assignees
Labels
No labels