Skip to content

Commit dea5998

Browse files
author
Guiners
committed
fixing functions names
1 parent ea5fb69 commit dea5998

10 files changed

+15
-15
lines changed

genai/test/textgen-transcript-with-gcs-audio.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('textgen-transcript-with-gcs-audio', async () => {
2626
this.timeout(180000);
2727
this.retries(4);
2828
await delay(this.test);
29-
const output = await sample.generateContent(projectId);
29+
const output = await sample.generateText(projectId);
3030
assert(output.length > 0);
3131
});
3232
});

genai/test/textgen-with-gcs-audio.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const sample = require('../text-generation/textgen-with-gcs-audio');
2323
describe('textgen-with-gcs-audio', async () => {
2424
it('should generate text content from gsc audio', async function () {
2525
this.timeout(300000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert(output.length > 0);
2828
});
2929
});

genai/test/textgen-with-local-video.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const sample = require('../text-generation/textgen-with-local-video.js');
2323
describe('textgen-with-local-video', async () => {
2424
it('should generate text content from local video', async function () {
2525
this.timeout(30000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert(output.length > 0);
2828
});
2929
});

genai/test/textgen-with-pdf.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const sample = require('../text-generation/textgen-with-pdf.js');
2323
describe('textgen-with-pdf', async () => {
2424
it('should generate text content from pdf', async function () {
2525
this.timeout(30000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert(output.length > 0);
2828
});
2929
});

genai/test/textgen-with-youtube-video.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const sample = require('../text-generation/textgen-with-youtube-video');
2323
describe('textgen-with-youtube-video', async () => {
2424
it('should generate text content from yt video', async function () {
2525
this.timeout(300000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert(output.length > 0);
2828
});
2929
});

genai/text-generation/textgen-transcript-with-gcs-audio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {GoogleGenAI} = require('@google/genai');
2020
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2121
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2222

23-
async function generateContent(
23+
async function generateText(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
@@ -65,5 +65,5 @@ async function generateContent(
6565
// [END googlegenaisdk_textgen_transcript_with_gcs_audio]
6666

6767
module.exports = {
68-
generateContent,
68+
generateText,
6969
};

genai/text-generation/textgen-with-gcs-audio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {GoogleGenAI} = require('@google/genai');
2020
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2121
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2222

23-
async function generateContent(
23+
async function generateText(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
@@ -57,5 +57,5 @@ async function generateContent(
5757
// [END googlegenaisdk_textgen_with_gcs_audio]
5858

5959
module.exports = {
60-
generateContent,
60+
generateText,
6161
};

genai/text-generation/textgen-with-local-video.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const fs = require('fs');
2121
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2222
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2323

24-
async function generateContent(
24+
async function generateText(
2525
projectId = GOOGLE_CLOUD_PROJECT,
2626
location = GOOGLE_CLOUD_LOCATION
2727
) {
@@ -60,5 +60,5 @@ async function generateContent(
6060
// [END googlegenaisdk_textgen_with_local_video]
6161

6262
module.exports = {
63-
generateContent,
63+
generateText,
6464
};

genai/text-generation/textgen-with-pdf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {GoogleGenAI} = require('@google/genai');
2020
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2121
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2222

23-
async function generateContent(
23+
async function generateText(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
@@ -61,5 +61,5 @@ async function generateContent(
6161
// [END googlegenaisdk_textgen_with_pdf]
6262

6363
module.exports = {
64-
generateContent,
64+
generateText,
6565
};

genai/text-generation/textgen-with-youtube-video.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {GoogleGenAI} = require('@google/genai');
2020
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2121
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2222

23-
async function generateContent(
23+
async function generateText(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
@@ -57,5 +57,5 @@ async function generateContent(
5757
// [END googlegenaisdk_textgen_with_youtube_video]
5858

5959
module.exports = {
60-
generateContent,
60+
generateText,
6161
};

0 commit comments

Comments
 (0)