We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc29c82 commit fd9412aCopy full SHA for fd9412a
apps/api/src/stt/deepgram/live.ts
@@ -3,14 +3,17 @@ import { WsProxyConnection } from "../connection";
3
4
const CONTROL_MESSAGE_TYPES = new Set(["KeepAlive", "CloseStream", "Finalize"]);
5
6
+const IGNORED_PARAMS = new Set(["provider", "keywords", "keyterm", "keyterms"]);
7
+
8
export const buildDeepgramUrl = (incomingUrl: URL) => {
9
const target = new URL("wss://api.deepgram.com/v1/listen");
10
11
incomingUrl.searchParams.forEach((value, key) => {
- if (key !== "provider") {
12
+ if (!IGNORED_PARAMS.has(key)) {
13
target.searchParams.set(key, value);
14
}
15
});
16
17
target.searchParams.set("model", "nova-3-general");
18
target.searchParams.set("mip_opt_out", "false");
19
0 commit comments