Skip to content
Source
Sign inSign up
TanStack/ai

fix(adapters): stop the provider request when the caller aborts #1975

MergedAlemTuzlakmerged 8 commits intomain fromrefs/pull/1975/headmerged by AlemTuzlak View on GitHub

Showing 65 changed files with 15 additions and 0 deletions (loading 62).

x
0 of 65 viewed, 65 left
5 additions and 0 deletions.changeset/abort-signal-ai-bedrock.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/ai-bedrock': patch
+---
+​
+Aborting a chat now cancels the Converse request to Bedrock, for streaming and for structured output. Before, the request kept running.
5 additions and 0 deletions.changeset/abort-signal-ai-byteplus.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/ai-byteplus': patch
+---
+​
+Aborting an image, video, speech, or transcription call now cancels the BytePlus request. Before, the request kept running and was billed. The image and video requests still stop at the configured `timeout`.
5 additions and 0 deletions.changeset/abort-signal-ai-elevenlabs.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/ai-elevenlabs': patch
+---
+​
+An abort now cancels the ElevenLabs request for speech, dialogue, music, sound effects, and transcription. Before, the adapters did not give the abort signal to the SDK, so the request ran to the end and was billed.
.changeset/abort-signal-ai-fal.mdAdded
View file
Loading the diff
.changeset/abort-signal-ai-gemini.mdAdded
View file
Loading the diff
.changeset/abort-signal-ai-grok.mdAdded
View file
Loading the diff