Skip to content

Commit 21a55a0

Browse files
committed
remove bidi streaming warning
1 parent 53bda9d commit 21a55a0

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/app/components/chat/chat.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,6 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
529529
window.localStorage.setItem('adk-hide-intermediate-events', String(newVal));
530530
}
531531

532-
// TODO: Remove this once backend supports restarting bidi streaming.
533-
sessionHasUsedBidi = new Set<string>();
534-
535532
eventData = new Map<string, any>();
536533
traceData: any[] = [];
537534
renderedEventGraph: SafeHtml | undefined;
@@ -1818,11 +1815,6 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
18181815
}
18191816

18201817
async startAudioRecording(flags?: LiveFlags) {
1821-
if (this.sessionId && this.sessionHasUsedBidi.has(this.sessionId)) {
1822-
this.openSnackBar(BIDI_STREAMING_RESTART_WARNING, 'OK');
1823-
return;
1824-
}
1825-
18261818
// Lazily create a real session if it does not exist
18271819
const isSessionActive = await this.ensureSessionActive();
18281820
if (!isSessionActive) {
@@ -1836,7 +1828,6 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
18361828
sessionId: this.sessionId,
18371829
flags: flags,
18381830
});
1839-
this.sessionHasUsedBidi.add(this.sessionId);
18401831
}
18411832

18421833
stopAudioRecording() {

0 commit comments

Comments
 (0)