Skip to content

Commit b000abe

Browse files
docs: update vertexai instantiation docs (#8437)
1 parent 2308183 commit b000abe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/vertexai/usage/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,12 @@ function App() {
415415
const authInstance = auth(app);
416416
const appCheckInstance = appCheck(app);
417417
// Configure appCheck instance as per docs....
418-
const vertexai = getVertexAI(app, undefined, appCheckInstance, authInstance);
418+
const options = {
419+
appCheck: appCheckInstance,
420+
auth: authInstance,
421+
};
422+
423+
const vertexai = getVertexAI(app, options);
419424
const model = getGenerativeModel(vertexai, { model: 'gemini-1.5-flash' });
420425

421426
const result = await model.generateContent('What is 2 + 2?');

0 commit comments

Comments
 (0)