Skip to content

Commit 3235c18

Browse files
committed
add init warning about 3.1 limitations
1 parent 93f6a64 commit 3235c18

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

plugins/google/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"typescript": "^5.0.0"
4444
},
4545
"dependencies": {
46-
"@google/genai": "^1.44.0",
46+
"@google/genai": "^1.49.0",
4747
"@livekit/mutex": "^1.1.1",
4848
"@types/json-schema": "^7.0.15",
4949
"json-schema": "^0.4.0"

plugins/google/src/beta/realtime/realtime_api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ interface ResponseGeneration {
140140
* Google Realtime Model for real-time voice conversations with Gemini models
141141
*/
142142
export class RealtimeModel extends llm.RealtimeModel {
143+
#logger = log();
143144
/** @internal */
144145
_options: RealtimeOptions;
145146

@@ -330,6 +331,12 @@ export class RealtimeModel extends llm.RealtimeModel {
330331
perResponseToolChoice: false,
331332
});
332333

334+
if (!mutableSession) {
335+
this.#logger.warn(
336+
`'${model}' has limited mid-session update support. instructions, chat context, and tool updates will not be applied until the next session.`,
337+
);
338+
}
339+
333340
this._options = {
334341
model,
335342
apiKey,

0 commit comments

Comments
 (0)