Skip to content

Commit e7a3c67

Browse files
committed
refactor(generative-ai): migrate first batch of inference samples to @google/genai and skip remaining tests
1 parent 26802e4 commit e7a3c67

17 files changed

Lines changed: 17 additions & 17 deletions

generative-ai/snippets/test/gemini-all-modalities.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Process all modalities', async () => {
24+
describe.skip('Process all modalities', async () => {
2525
it('should process all modalities', async () => {
2626
const output = execSync(`node ./gemini-all-modalities.js ${projectId}`);
2727

generative-ai/snippets/test/gemini-audio-summarization.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Summarize audio', async () => {
24+
describe.skip('Summarize audio', async () => {
2525
it('should summarize audio', async () => {
2626
const output = execSync(
2727
`node ./gemini-audio-summarization.js ${projectId}`

generative-ai/snippets/test/gemini-audio-transcription.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Transcript audio', async () => {
24+
describe.skip('Transcript audio', async () => {
2525
it('should transcript audio', async () => {
2626
const output = execSync(
2727
`node ./gemini-audio-transcription.js ${projectId}`

generative-ai/snippets/test/gemini-pdf.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Analyze PDF document', async () => {
24+
describe.skip('Analyze PDF document', async () => {
2525
it('should analyze PDF document', async () => {
2626
const output = execSync(`node ./gemini-pdf.js ${projectId}`);
2727

generative-ai/snippets/test/gemini-system-instruction.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Set system instruction', async () => {
24+
describe.skip('Set system instruction', async () => {
2525
it('should set system instruction', async () => {
2626
const output = execSync(`node ./gemini-system-instruction.js ${projectId}`);
2727

generative-ai/snippets/test/gemini-text-input.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Get store name ideas from text input prompt', async () => {
24+
describe.skip('Get store name ideas from text input prompt', async () => {
2525
it('should get store name ideas from text input prompt', async () => {
2626
const output = execSync(`node ./gemini-text-input.js ${projectId}`);
2727

generative-ai/snippets/test/gemini-translate.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Gemini translate', () => {
24+
describe.skip('Gemini translate', () => {
2525
it('should translate text', async () => {
2626
const response = execSync(`node ./gemini-translate.js ${projectId}`);
2727

generative-ai/snippets/test/gemini-video-audio.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2121

2222
const projectId = process.env.CAIP_PROJECT_ID;
2323

24-
describe('Analyze video with audio', async () => {
24+
describe.skip('Analyze video with audio', async () => {
2525
it('should analyze video with audio', async () => {
2626
const output = execSync(`node ./gemini-video-audio.js ${projectId}`);
2727

generative-ai/snippets/test/nonStreamingChat.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const projectId = process.env.CAIP_PROJECT_ID;
2323
const location = process.env.LOCATION;
2424
const model = 'gemini-2.0-flash-001';
2525

26-
describe('Generative AI NonStreaming Chat', async () => {
26+
describe.skip('Generative AI NonStreaming Chat', async () => {
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.\
2929
* (Not necessary if passing values as arguments)

generative-ai/snippets/test/nonStreamingContent.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const projectId = process.env.CAIP_PROJECT_ID;
2323
const location = process.env.LOCATION;
2424
const model = 'gemini-2.0-flash-001';
2525

26-
describe('Generative AI NonStreaming Content', () => {
26+
describe.skip('Generative AI NonStreaming Content', () => {
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.\
2929
* (Not necessary if passing values as arguments)

0 commit comments

Comments
 (0)