Skip to content

Commit 6729ca7

Browse files
author
Guiners
committed
fixing functions names
1 parent 5fb5089 commit 6729ca7

10 files changed

Lines changed: 15 additions & 15 deletions

genai/test/textgen-async-with-txt.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-async-with-txt.js');
2323
describe('textgen-async-with-txt', () => {
2424
it('should generate text content from a text prompt and with system instructions', async function () {
2525
this.timeout(100000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert(output.length > 0);
2828
});
2929
});

genai/test/textgen-chat-stream-with-txt.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-chat-stream-with-txt.js');
2323
describe('textgen-chat-stream-with-txt', () => {
2424
it('should generate text content from a mute video', async function () {
2525
this.timeout(100000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert.isTrue(output);
2828
});
2929
});

genai/test/textgen-chat-with-txt.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-chat-with-txt.js');
2323
describe('textgen-chat-with-txt', () => {
2424
it('should generate chat content from a text prompt', async function () {
2525
this.timeout(100000);
26-
const output = await sample.generateContent(projectId);
26+
const output = await sample.generateText(projectId);
2727
assert(output.length > 0);
2828
});
2929
});

genai/test/textgen-code-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-code-with-pdf.js');
2323
describe('textgen-code-with-pdf', () => {
2424
it('should generate text content from a pdf', async function () {
2525
this.timeout(100000);
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-mute-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-mute-video.js');
2323
describe('textgen-with-mute-video', () => {
2424
it('should generate text content from a mute video', async function () {
2525
this.timeout(100000);
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-async-with-txt.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
) {
@@ -52,5 +52,5 @@ async function generateContent(
5252
// [END googlegenaisdk_textgen_async_with_txt]
5353

5454
module.exports = {
55-
generateContent,
55+
generateText,
5656
};

genai/text-generation/textgen-chat-stream-with-txt.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
) {
@@ -50,5 +50,5 @@ async function generateContent(
5050
// [END googlegenaisdk_textgen_chat_stream_with_txt]
5151

5252
module.exports = {
53-
generateContent,
53+
generateText,
5454
};

genai/text-generation/textgen-chat-with-txt.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_chat_with_txt]
5858

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

genai/text-generation/textgen-code-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
) {
@@ -74,5 +74,5 @@ async function generateContent(
7474
// [END googlegenaisdk_textgen_code_with_pdf]
7575

7676
module.exports = {
77-
generateContent,
77+
generateText,
7878
};

genai/text-generation/textgen-with-mute-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
) {
@@ -61,5 +61,5 @@ async function generateContent(
6161
// [END googlegenaisdk_textgen_with_mute_video]
6262

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

0 commit comments

Comments
 (0)