Skip to content

Commit ca9fb48

Browse files
author
Guiners
committed
bumping version and fixing tests
1 parent d58b588 commit ca9fb48

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ async function generateContent(
3030
location: location,
3131
});
3232

33+
const MODEL_NAME = 'gemini-2.0-flash';
34+
3335
const response = await ai.models.generateContent({
34-
model: 'gemini-2.0-flash',
36+
model: MODEL_NAME,
3537
contents:
3638
'What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50.',
3739
config: {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ async function generateContent(
7171
trends in music consumption.
7272
`;
7373

74+
const MODEL_NAME = 'gemini-2.0-flash';
75+
7476
const response = await ai.models.generateContent({
75-
model: 'gemini-2.0-flash',
77+
model: MODEL_NAME,
7678
contents: prompt,
7779
config: {
7880
tools: [sales_tool],

0 commit comments

Comments
 (0)