Skip to content

Commit c342789

Browse files
jpvajdanaomi-lgbt
authored andcommitted
fix: fixes mips_opt_out placement
1 parent 76f9653 commit c342789

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/lib/types/AgentLiveSchema.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ interface AgentLiveSchema extends Record<string, unknown> {
1717
* @default false
1818
*/
1919
experimental?: boolean;
20+
/**
21+
* To opt out of Deepgram Model Improvement Program.
22+
* @default false
23+
*/
24+
mips_opt_out?: boolean;
2025
audio: {
2126
input?: {
2227
/**
@@ -80,11 +85,6 @@ interface AgentLiveSchema extends Record<string, unknown> {
8085
* Optional message the agent will say at the start of the connection.
8186
*/
8287
greeting?: string;
83-
/**
84-
* To opt out of Deepgram Model Improvement Program.
85-
* @default false
86-
*/
87-
mip_opt_out?: boolean;
8888
};
8989
}
9090

tests/unit/live-client-message-handling.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,13 @@ describe("Unit Tests - Live Client Message Handling", () => {
575575
});
576576
});
577577

578-
describe("mip_opt_out configuration", () => {
579-
it("should accept mip_opt_out as true", () => {
578+
describe("mips_opt_out configuration", () => {
579+
it("should accept mips_opt_out as true", () => {
580580
const config = {
581581
audio: { input: { encoding: "linear16", sample_rate: 16000 } },
582+
mips_opt_out: true,
582583
agent: {
583584
language: "en",
584-
mip_opt_out: true,
585585
speak: {
586586
provider: { type: "deepgram", model: "aura-2-zeus-en" },
587587
},
@@ -594,12 +594,12 @@ describe("Unit Tests - Live Client Message Handling", () => {
594594
);
595595
});
596596

597-
it("should accept mip_opt_out as false", () => {
597+
it("should accept mips_opt_out as false", () => {
598598
const config = {
599599
audio: { input: { encoding: "linear16", sample_rate: 16000 } },
600+
mips_opt_out: false,
600601
agent: {
601602
language: "en",
602-
mip_opt_out: false,
603603
speak: {
604604
provider: { type: "deepgram", model: "aura-2-zeus-en" },
605605
},
@@ -612,7 +612,7 @@ describe("Unit Tests - Live Client Message Handling", () => {
612612
);
613613
});
614614

615-
it("should work without mip_opt_out (default behavior)", () => {
615+
it("should work without mips_opt_out (default behavior)", () => {
616616
const config = {
617617
audio: { input: { encoding: "linear16", sample_rate: 16000 } },
618618
agent: {

0 commit comments

Comments
 (0)