I’m trying to use the flux-general-en STT by passing this to AgentSessionOptions (node SDK):
{
stt: new deepgram.STT({ model: ‘flux-general-en’ }),
};
I’m getting the following error:
ERROR (27220): AgentSession is closing due to an unrecoverable error
type: “stt_error”
label: “deepgram.STT”
recoverable: false
error: {
“type”: “APIStatusError”,
“message”: “Deepgram WebSocket connection rejected with status 400”,
“stack”:
APIStatusError: Deepgram WebSocket connection rejected with status 400
at WebSocket.onUnexpectedResponse (C:\Projects\myproject\livekit-agent\node_modules.pnpm@livekit+agents@1.8.1_@live_1f2f4d1578e9959998da1e2ff02a2afe\node_modules@livekit\agents\src\utils.ts:69:9)
at Object.onceWrapper (node:events:623:26)
at WebSocket.emit (node:events:508:28)
at ClientRequest. (C:\Projects\myproject\livekit-agent\node_modules.pnpm\ws@8.21.0\node_modules\ws\lib\websocket.js:929:27)
at ClientRequest.emit (node:events:508:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:780:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:125:17)
at TLSSocket.socketOnData (node:_http_client:615:22)
at TLSSocket.emit (node:events:508:28)
at addChunk (node:internal/streams/readable:563:12)
“body”: null,
“retryable”: false,
“name”: “APIStatusError”,
“statusCode”: 400,
“requestId”: null
}
To my understanding it should be supported:
It works as expected when passing nova-3.