Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ai/integration/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const modelNames: readonly string[] = ['gemini-2.0-flash', 'gemini-2.5-flash'];
// The Live API requires a different set of models, and they're different for each backend.
const liveModelNames: Map<BackendType, string[]> = new Map([
[BackendType.GOOGLE_AI, ['gemini-live-2.5-flash-preview']],
[BackendType.VERTEX_AI, ['gemini-2.0-flash-exp']]
[BackendType.VERTEX_AI, ['gemini-2.0-flash-live-preview-04-09']]
]);

/**
Expand Down
3 changes: 0 additions & 3 deletions packages/ai/integration/live.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { expect } from 'chai';
import {
BackendType,

Check failure on line 20 in packages/ai/integration/live.test.ts

View workflow job for this annotation

GitHub Actions / Lint

'BackendType' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 20 in packages/ai/integration/live.test.ts

View workflow job for this annotation

GitHub Actions / Lint

'BackendType' is defined but never used

Check failure on line 20 in packages/ai/integration/live.test.ts

View workflow job for this annotation

GitHub Actions / Test Packages With Changed Files in Chrome and Node

'BackendType' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 20 in packages/ai/integration/live.test.ts

View workflow job for this annotation

GitHub Actions / Test Packages With Changed Files in Chrome and Node

'BackendType' is defined but never used
getLiveGenerativeModel,
LiveGenerationConfig,
LiveServerContent,
Expand Down Expand Up @@ -81,9 +81,6 @@
};

liveTestConfigs.forEach(testConfig => {
if (testConfig.ai.backend.backendType === BackendType.VERTEX_AI) {
return;
}
describe(`${testConfig.toString()}`, () => {
describe('Live', () => {
it('should connect, send a message, receive a response, and close', async () => {
Expand Down
Loading