ai 6.0.243 → 6.0.244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,7 +164,7 @@ function detectMediaType({
164
164
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
165
165
 
166
166
  // src/version.ts
167
- var VERSION = true ? "6.0.243" : "0.0.0-test";
167
+ var VERSION = true ? "6.0.244" : "0.0.0-test";
168
168
 
169
169
  // src/util/download/download.ts
170
170
  var download = async ({
@@ -144,7 +144,7 @@ import {
144
144
  } from "@ai-sdk/provider-utils";
145
145
 
146
146
  // src/version.ts
147
- var VERSION = true ? "6.0.243" : "0.0.0-test";
147
+ var VERSION = true ? "6.0.244" : "0.0.0-test";
148
148
 
149
149
  // src/util/download/download.ts
150
150
  var download = async ({
@@ -226,5 +226,6 @@ try {
226
226
  | [Google Vertex](/providers/ai-sdk-providers/google-vertex#transcription-models) | `chirp_2` |
227
227
  | [Google Vertex](/providers/ai-sdk-providers/google-vertex#transcription-models) | `chirp_3` |
228
228
  | [Google Vertex](/providers/ai-sdk-providers/google-vertex#transcription-models) | `telephony` |
229
+ | [Fish Audio](/providers/ai-sdk-providers/fish-audio#transcription-models) | `transcribe-1` |
229
230
 
230
231
  Above are a small subset of the transcription models supported by the AI SDK providers. For more, see the respective provider documentation.
@@ -166,5 +166,8 @@ try {
166
166
  | [LMNT](/providers/ai-sdk-providers/lmnt#speech-models) | `aurora` |
167
167
  | [LMNT](/providers/ai-sdk-providers/lmnt#speech-models) | `blizzard` |
168
168
  | [Hume](/providers/ai-sdk-providers/hume#speech-models) | `default` |
169
+ | [Fish Audio](/providers/ai-sdk-providers/fish-audio#speech-models) | `s1` |
170
+ | [Fish Audio](/providers/ai-sdk-providers/fish-audio#speech-models) | `s2-pro` |
171
+ | [Fish Audio](/providers/ai-sdk-providers/fish-audio#speech-models) | `s2.1-pro` |
169
172
 
170
173
  Above are a small subset of the speech models supported by the AI SDK providers. For more, see the respective provider documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.243",
3
+ "version": "6.0.244",
4
4
  "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
package/src/ui/chat.ts CHANGED
@@ -656,7 +656,10 @@ export abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
656
656
  try {
657
657
  const response = {
658
658
  state: createStreamingUIMessageState({
659
- lastMessage: this.state.snapshot(lastMessage),
659
+ lastMessage:
660
+ trigger === 'regenerate-message'
661
+ ? undefined
662
+ : this.state.snapshot(lastMessage),
660
663
  messageId: this.generateId(),
661
664
  }),
662
665
  abortController: new AbortController(),