@@ -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 } ` ) ;
0 commit comments