Skip to content

Commit 1c9602e

Browse files
committed
Update e2e for cloud inference
1 parent 827bce3 commit 1c9602e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

e2e/sample-apps/modular.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,12 @@ async function callVertexAI(app) {
332332

333333
const model = getGenerativeModel(vertexAI, {
334334
mode: 'prefer_on_device',
335-
inCloudParams: {
336-
generationConfig: {
337-
responseSchema
338-
}
339-
}
335+
// mode: 'only_in_cloud'
340336
});
341337

342338
const singleResult = await model.generateContent({
343339
generationConfig: {
340+
responseMimeType: 'application/json',
344341
responseSchema
345342
},
346343
contents: [

0 commit comments

Comments
 (0)