Skip to content

Commit 69a86c6

Browse files
committed
fix rebase mangling
1 parent e4be941 commit 69a86c6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

client-js/client/client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ export class PipecatClient extends RTVIEventEmitter {
232232
private _uiSnapshotStreamer: A11ySnapshotStreamer | undefined;
233233
private _pendingUISnapshot: A11ySnapshot | undefined;
234234

235-
private _botVersion: number[] = [0, 0, 0];
236-
237235
private _botTranscriptionWarned = false;
238236
private _llmFunctionCallWarned = false;
239237

@@ -1173,8 +1171,10 @@ export class PipecatClient extends RTVIEventEmitter {
11731171
this._botVersion[0] < 1 ||
11741172
(this._botVersion[0] === 1 && this._botVersion[1] < 3)
11751173
) {
1176-
throw new RTVIErrors.RTVIError(
1177-
"sendFile() is not supported for bot versions less than 1.3.0"
1174+
throw new RTVIErrors.UnsupportedFeatureError(
1175+
"sendFile",
1176+
"bot",
1177+
"requires RTVI protocol 2.2.0+"
11781178
);
11791179
}
11801180
let rtvi_file = file instanceof File ? ({} as RTVIFile) : file;
@@ -1356,8 +1356,8 @@ export class PipecatClient extends RTVIEventEmitter {
13561356
switch (ev.type) {
13571357
case RTVIMessageType.BOT_READY: {
13581358
const data = ev.data as BotReadyData;
1359-
this._botVersion = data.version
1360-
? (data.version.split(".").map(Number) as number[])
1359+
const botVersion = data.version
1360+
? data.version.split(".").map(Number)
13611361
: [0, 0, 0];
13621362
this._botVersion = botVersion;
13631363
logger.debug(`[Pipecat Client] Bot is ready. Version: ${data.version}`);

client-js/rtvi/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import type { A11ySnapshot, UIJobGroupEnvelope } from "./ui";
1414

1515
// Protocol 2.0.0 adds server-driven bot-output progress (spoken_progress, segment_id).
16-
export const RTVI_PROTOCOL_VERSION = "2.1.0";
16+
export const RTVI_PROTOCOL_VERSION = "2.2.0";
1717
export const RTVI_MESSAGE_LABEL = "rtvi-ai";
1818

1919
/**

0 commit comments

Comments
 (0)