Skip to content

Commit fb4d4eb

Browse files
author
Guiners
committed
adding samples, test, lints
1 parent 07a3b64 commit fb4d4eb

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

genai/test/tools-func-desc-with-txt.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414

1515
'use strict';
1616

17-
const {assert} = require('chai');
1817
const {describe, it} = require('mocha');
1918

2019
const projectId = process.env.CAIP_PROJECT_ID;
2120
const sample = require('../tools/tools-func-desc-with-txt.js');
2221

2322
describe('tools-func-desc-with-txt', async () => {
2423
it('should generate a function call', async () => {
25-
const output = await sample.generateContent(projectId);
26-
assert(output.length > 0);
24+
await sample.generateContent(projectId);
2725
});
2826
});

genai/tools/tools-code-exec-with-txt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function generateContent(
3131
});
3232

3333
const response = await ai.models.generateContent({
34-
model: 'gemini-2.5-flash-preview-05-20',
34+
model: 'gemini-2.5-flash',
3535
contents:
3636
'What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50.',
3737
config: {

0 commit comments

Comments
 (0)