Skip to content

Commit a90440e

Browse files
committed
Run yarn format
1 parent 50272f4 commit a90440e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

e2e/sample-apps/modular.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ import {
5858
onValue,
5959
off
6060
} from 'firebase/database';
61-
import { getGenerativeModel, getVertexAI, InferenceMode, VertexAI } from 'firebase/vertexai';
61+
import {
62+
getGenerativeModel,
63+
getVertexAI,
64+
InferenceMode,
65+
VertexAI
66+
} from 'firebase/vertexai';
6267
import { getDataConnect, DataConnect } from 'firebase/data-connect';
6368

6469
/**
@@ -334,10 +339,12 @@ function callDataConnect(app) {
334339

335340
async function callVertex(app) {
336341
console.log('[VERTEX] start');
337-
const vertex = getVertexAI(app)
338-
const model = getGenerativeModel(vertex, {mode: InferenceMode.PREFER_ON_DEVICE})
339-
const result = await model.generateContent("What is Roko's Basalisk?")
340-
console.log(result.response.text())
342+
const vertex = getVertexAI(app);
343+
const model = getGenerativeModel(vertex, {
344+
mode: InferenceMode.PREFER_ON_DEVICE
345+
});
346+
const result = await model.generateContent("What is Roko's Basalisk?");
347+
console.log(result.response.text());
341348
console.log('[VERTEX] initialized');
342349
}
343350

0 commit comments

Comments
 (0)