Skip to content

Commit 1830e2c

Browse files
committed
test(ai): update vertex ai live model name
Replaces the deprecated `gemini-2.0-flash-exp` with `gemini-2.0-flash-live-preview-04-09`.
1 parent 5c35f51 commit 1830e2c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/ai/integration/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const modelNames: readonly string[] = ['gemini-2.0-flash', 'gemini-2.5-flash'];
5757
// The Live API requires a different set of models, and they're different for each backend.
5858
const liveModelNames: Map<BackendType, string[]> = new Map([
5959
[BackendType.GOOGLE_AI, ['gemini-live-2.5-flash-preview']],
60-
[BackendType.VERTEX_AI, ['gemini-2.0-flash-exp']]
60+
[BackendType.VERTEX_AI, ['gemini-2.0-flash-live-preview-04-09']]
6161
]);
6262

6363
/**

packages/ai/integration/live.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ describe('Live', function () {
8181
};
8282

8383
liveTestConfigs.forEach(testConfig => {
84-
if (testConfig.ai.backend.backendType === BackendType.VERTEX_AI) {
85-
return;
86-
}
8784
describe(`${testConfig.toString()}`, () => {
8885
describe('Live', () => {
8986
it('should connect, send a message, receive a response, and close', async () => {

0 commit comments

Comments
 (0)