Skip to content

Commit 3f02db0

Browse files
committed
Run yarn format
1 parent 8f15d63 commit 3f02db0

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
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

packages/vertexai/src/api.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
import {
18-
ImagenModelParams,
19-
ModelParams,
20-
VertexAIErrorCode
21-
} from './types';
17+
import { ImagenModelParams, ModelParams, VertexAIErrorCode } from './types';
2218
import { VertexAIError } from './errors';
2319
import { ImagenModel, getGenerativeModel, getImagenModel } from './api';
2420
import { expect } from 'chai';

0 commit comments

Comments
 (0)