Skip to content

Commit ca207ec

Browse files
committed
fix: remove model/keyterm check
1 parent b0fc5cb commit ca207ec

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/packages/AgentLiveClient.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { DEFAULT_AGENT_URL } from "../lib/constants";
22
import { AgentEvents } from "../lib/enums/AgentEvents";
33
import { DeepgramError } from "../lib/errors";
4-
import type {
5-
AgentLiveSchema,
6-
DeepgramClientOptions,
7-
FunctionCallResponse,
8-
} from "../lib/types";
4+
import type { AgentLiveSchema, DeepgramClientOptions, FunctionCallResponse } from "../lib/types";
95
import { AbstractLiveClient } from "./AbstractLiveClient";
106

117
export class AgentLiveClient extends AbstractLiveClient {
@@ -17,7 +13,7 @@ export class AgentLiveClient extends AbstractLiveClient {
1713

1814
this.connect({}, endpoint);
1915
}
20-
16+
2117
/**
2218
* Sets up the connection event handlers.
2319
* This method is responsible for handling the various events that can occur on the WebSocket connection, such as opening, closing, and receiving messages.
@@ -106,12 +102,6 @@ export class AgentLiveClient extends AbstractLiveClient {
106102
* @param options - The SettingsConfiguration object.
107103
*/
108104
public configure(options: AgentLiveSchema): void {
109-
if (
110-
!options.agent.listen?.provider.model.startsWith("nova-3") &&
111-
options.agent.listen?.provider.keyterms?.length
112-
) {
113-
throw new DeepgramError("Keyterms are only supported with the Nova 3 models.");
114-
}
115105
const string = JSON.stringify({
116106
type: "Settings",
117107
...options,

0 commit comments

Comments
 (0)