@ai-sdk/gateway
4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed
4.0.152 is the newest release of 4.x.
In short
1 new1 internal
Release note
Patch Changes
gateway: Implement experimental streaming speech in the gateway provider
GatewaySpeechModelimplementsExperimental_StreamingSpeechModelV4and streams speech over the AI Gateway speech WebSocket (/speech-model,ai-gateway-speech.v1subprotocol).@ai-sdk/provider-utilsadds the experimental speech-stream envelope (experimental_parseSpeechStreamClientFrame,experimental_serializeSpeechStreamPart,experimental_parseSpeechStreamPart) shared by clients and servers, plus theEXPERIMENTAL_SPEECH_STREAM_*frame type constants andExperimental_SpeechStream*frame types. Text-delta frames carry each text part'svoiceandproviderOptions; the start frame carriesoutputFormatas an audio format object. Addsgateway.experimental_speech, callable likespeech(modelId), with a server-sidegetToken()that mints a speech-bound short-lived client secret for browser use.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.