From 297042ef9741ef2924c628fd88fbd66c24856976 Mon Sep 17 00:00:00 2001 From: Tina Nguyen Date: Fri, 3 Apr 2026 15:59:05 -0400 Subject: [PATCH 1/2] add extra warnings --- plugins/google/src/beta/realtime/realtime_api.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/google/src/beta/realtime/realtime_api.ts b/plugins/google/src/beta/realtime/realtime_api.ts index eb612c32e..1c3f48245 100644 --- a/plugins/google/src/beta/realtime/realtime_api.ts +++ b/plugins/google/src/beta/realtime/realtime_api.ts @@ -543,6 +543,13 @@ export class RealtimeSession extends llm.RealtimeSession { } async updateInstructions(instructions: string): Promise { + if (this.options.model === 'gemini-3.1-flash-live-preview') { + this.#logger.warn( + 'updateInstructions is not compatible with gemini-3.1-flash-live-preview and will be ignored.', + ); + this.options.instructions = instructions; + return; + } if (this.options.instructions === undefined || this.options.instructions !== instructions) { this.options.instructions = instructions; this.markRestartNeeded(); @@ -550,6 +557,13 @@ export class RealtimeSession extends llm.RealtimeSession { } async updateChatCtx(chatCtx: llm.ChatContext): Promise { + if (this.options.model === 'gemini-3.1-flash-live-preview') { + this.#logger.warn( + 'updateChatCtx is not compatible with gemini-3.1-flash-live-preview and will be ignored.', + ); + this._chatCtx = chatCtx.copy(); + return; + } const unlock = await this.sessionLock.lock(); try { if (!this.activeSession) { From eed28bfd4ba90fabbd4284dd7f98b09359e39647 Mon Sep 17 00:00:00 2001 From: Tina Nguyen Date: Fri, 3 Apr 2026 16:12:39 -0400 Subject: [PATCH 2/2] changeset --- .changeset/rude-deer-hang.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rude-deer-hang.md diff --git a/.changeset/rude-deer-hang.md b/.changeset/rude-deer-hang.md new file mode 100644 index 000000000..8b410ab67 --- /dev/null +++ b/.changeset/rude-deer-hang.md @@ -0,0 +1,5 @@ +--- +'@livekit/agents-plugin-google': patch +--- + +add extra warnings regarding gemini-3.1-flash-live-preview compatibility