If I want an llm to stream responses through nostr private DM's, it's a lot of events. Not the most efficient but it's the best UX. Is there a NIP for streaming data that can be discarded by relays shortly after relaying them? Since the data is ephemeral. For history, the data that was streamed can be backed up by a normal DM event with the composed stream once it ends.

#asknostr

Reply to this note

Please Login to reply.

Discussion

https://github.com/nostr-protocol/nips/blob/master/40.md

idk what relays support this... i have an event store that has garbage collection, probably would make sense for it to delete those events at some time not long after the expiry

or maybe it could be implemented by creating a "todo" list with the event ID and a timestamp that gets checked more regularly than the GC (which would be like 10 minutes)

also, the other thing you'll encounter is clients will cache the event indefinitely as well

afaik this nip isn't widely supported

you could use ephemeral events which reside 5 mins on strfry, but even if it works it may trigger rate limits.

How far did you get with this? I am thinking of the same.