Comment

Comment by social_quotient

I have not found a way yet, even conceptually, and in our case the extra layer comes at a cost to the ux. To overcome some of this we use https://sdk.vercel.ai/docs/reference/ai-sdk-core/simulate-re...

To still give that streaming feel while you aren’t actually streaming.

I considered the double llm and while any layer of checking is probably better than nothing I wanted to be able to rely on a search for this. Something about it feels more deterministic to me as a guardrail. (I could be wrong here!)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton