Skip to content

Commit fa16ac7

Browse files
author
Guiners
committed
fixing varname
1 parent 7cf04b5 commit fa16ac7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

genai/batch-prediction/batchpredict-embeddings-with-gcs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ async function runBatchPredictionJob(
6464
await new Promise(resolve => setTimeout(resolve, 30000));
6565
job = await client.batches.get({name: job.name});
6666
console.log(`Job state: ${job.state}`);
67-
if (job.state === 'JOB_STATE_FAILED') {
68-
console.log(`Error: ${job.state}`);
69-
break;
70-
}
67+
// if (job.state === 'JOB_STATE_FAILED') {
68+
// console.log(`Error: ${job.state}`);
69+
// break;
70+
// }
7171
}
7272

7373
// Example response:

genai/test/batchpredict-embeddings-with-gcs.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ async function getGcsOutputUri() {
4848
describe('batchpredict-with-gcs', () => {
4949
it('should return the batch job state', async function () {
5050
this.timeout(500000);
51-
this.retries(4);
52-
await delay(this.test);
53-
const bqOutput = await getGcsOutputUri();
51+
// this.retries(4);
52+
// await delay(this.test);
53+
const gcsOutput = await getGcsOutputUri();
5454
try {
5555
const output = await sample.runBatchPredictionJob(
56-
bqOutput.uri,
56+
gcsOutput.uri,
5757
projectId,
5858
location
5959
);
6060
assert.notEqual(output, undefined);
6161
} finally {
62-
await bqOutput.cleanup();
62+
await gcsOutput.cleanup();
6363
}
6464
});
6565
});

genai/test/batchpredict-with-gcs.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ describe('batchpredict-with-gcs', () => {
5050
this.timeout(500000);
5151
this.retries(4);
5252
await delay(this.test);
53-
const bqOutput = await getGcsOutputUri();
53+
const gcsOutput = await getGcsOutputUri();
5454
try {
5555
const output = await sample.runBatchPredictionJob(
56-
bqOutput.uri,
56+
gcsOutput.uri,
5757
projectId,
5858
location
5959
);
6060
assert.notEqual(output, undefined);
6161
} finally {
62-
await bqOutput.cleanup();
62+
await gcsOutput.cleanup();
6363
}
6464
});
6565
});

0 commit comments

Comments
 (0)