UNPKG

ai

Version:

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.

18 lines (16 loc) • 467 B
import type { Experimental_StreamingSpeechModelV4, SpeechModelV4, } from '@ai-sdk/provider'; /** * Whether a resolved speech model implements the experimental streaming * speech extension (`Experimental_StreamingSpeechModelV4`). */ export function isStreamingSpeechModel( model: SpeechModelV4, ): model is Experimental_StreamingSpeechModelV4 { return ( typeof (model as Partial<Experimental_StreamingSpeechModelV4>).doStream === 'function' ); }