Skip to content

Commit 15d9699

Browse files
committed
Fix generative model tests to use fakeAI
1 parent 0e94110 commit 15d9699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vertexai/src/models/generative-model.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('GenerativeModel', () => {
168168
restore();
169169
});
170170
it('passes base model params through to ChatSession when there are no startChatParams', async () => {
171-
const genModel = new GenerativeModel(fakeVertexAI, {
171+
const genModel = new GenerativeModel(fakeAI, {
172172
model: 'my-model',
173173
generationConfig: {
174174
topK: 1
@@ -181,7 +181,7 @@ describe('GenerativeModel', () => {
181181
restore();
182182
});
183183
it('overrides base model params with startChatParams', () => {
184-
const genModel = new GenerativeModel(fakeVertexAI, {
184+
const genModel = new GenerativeModel(fakeAI, {
185185
model: 'my-model',
186186
generationConfig: {
187187
topK: 1

0 commit comments

Comments
 (0)