Replies: 6 comments 2 replies
-
+1 Very important in this day and age of LLMs trickling down bytes. |
Beta Was this translation helpful? Give feedback.
-
did you find a solution? |
Beta Was this translation helpful? Give feedback.
-
Same problem 13.5.6 |
Beta Was this translation helpful? Give feedback.
-
Same problem |
Beta Was this translation helpful? Give feedback.
-
Any solution? This is absolutely crucial! I need to bill my customers for LLM tokens used, even when aborting the stream. This needs to be handled. |
Beta Was this translation helpful? Give feedback.
-
same problem too! |
Beta Was this translation helpful? Give feedback.
-
Summary
Hi! I used Edge functions Streaming functionality.
When I abort the stream on the client side, I have a such error in the edge function logs:
How can I handle this on the server side?
As a server-side example, I used the edge function from this repo
https://github.com/Nutlope/twitterbio/blob/main/pages/api/generate.ts
Then I send the query from the Postman, and canceled the response before it finished
Beta Was this translation helpful? Give feedback.
All reactions