Skip to content

Commit

Permalink
Do not waste tokens on 'STOP' (roll Next) - Fixes #22
Browse files Browse the repository at this point in the history
Thanks to the Vercel team (@jridgewell), an interruption of the stream on the client
side will lead to the cancellation of the TransformStream on the servers side, which
in turns cancels the open fetch() to the upstream. This was a long needed change and
we are happy to report it works well.

Related: #114
 - vercel/ai#90
 - vercel/edge-runtime#428
 - trpc/trpc#4586 (enormous thanks to the tRPC team to issue
   a quick release as well)
  • Loading branch information
enricoros committed Jul 5, 2023
1 parent 25aea07 commit 1f3dca1
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 197 deletions.

1 comment on commit 1f3dca1

@vercel
Copy link

@vercel vercel bot commented on 1f3dca1 Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

big-agi-git-main-enricoros.vercel.app
big-agi-enricoros.vercel.app
get.big-agi.com

Please sign in to comment.