Vercel has updated its AI SDK, introducing @ai-sdk/fish-audio@3.0.0, which adds a new provider for speech and transcription models. The update also includes several patch changes to the core ai package, version 7.0.54, and other SDK components.
Key Points
- The @ai-sdk/fish-audio@3.0.0 package introduces a new provider for speech and transcription models.
- ai@7.0.54 allows ToolLoopAgent
prepareCallcallbacks to read and override the top-level reasoning option. - A
defaultInstructionsMiddlewarehas been added to ai@7.0.54 for applying default language model instructions while preserving call-level overrides. - ai@7.0.54 now preserves preceding assistant messages when regenerating a response.
- @ai-sdk/anthropic@4.0.32 rejects spliced Anthropic generations but permits duplicate message start events for the active message.
Context
According to the Vercel AI SDK changelog, these updates are part of ongoing development across various SDK packages. The changes affect core functionalities related to language model interactions and specific provider integrations, such as Anthropic and the newly added Fish Audio.
Why It Matters
These updates provide developers with more control over language model interactions, particularly in managing instructions and message history. The addition of a new audio provider expands the SDK's capabilities for applications requiring speech and transcription, potentially reducing the need for external integrations.
What To Do
- Review the updated documentation for @ai-sdk/fish-audio to understand its speech and transcription model capabilities.
- Examine the ToolLoopAgent
prepareCallcallbacks to leverage the new reasoning option override. - Implement
defaultInstructionsMiddlewareto manage default language model instructions while allowing call-level customizations. - Note the improved message regeneration behavior, which now preserves preceding assistant messages.
- If using @ai-sdk/anthropic, be aware of the updated handling for spliced generations and duplicate message start events.
Keep Exploring
/atlas/claude-family /techniques/system-user-separation /techniques/output-schema /studio?pack=foundation
