tRPCttRPC
Powered by
sebS
tRPC•3y ago•
2 replies
seb

Streaming responses (eg. for streaming ai chat completion text)

Hello! Has anyone used Vercel's
ai
ai
package or any similar libraries which stream their responses with tRPC? I'm wondering what the best way to achieve a streamed response like that is while maintaining type safety. The trouble with
useSubscription()
useSubscription()
is that it behaves more like a query than a mutation, so it would need to be called immediately when the component mounts rather than being triggered by some user action.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

v11 Streaming responses for file uploads
sebSseb / ❓-help
3w ago
gzip responses
crummyCcrummy / ❓-help
2y ago