We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2308183 commit b000abeCopy full SHA for b000abe
docs/vertexai/usage/index.md
@@ -415,7 +415,12 @@ function App() {
415
const authInstance = auth(app);
416
const appCheckInstance = appCheck(app);
417
// Configure appCheck instance as per docs....
418
- const vertexai = getVertexAI(app, undefined, appCheckInstance, authInstance);
+ const options = {
419
+ appCheck: appCheckInstance,
420
+ auth: authInstance,
421
+ };
422
+
423
+ const vertexai = getVertexAI(app, options);
424
const model = getGenerativeModel(vertexai, { model: 'gemini-1.5-flash' });
425
426
const result = await model.generateContent('What is 2 + 2?');
0 commit comments