Skip to content

Commit d58de8c

Browse files
author
Guiners
committed
bumping version and fixing tests
1 parent 3842910 commit d58de8c

11 files changed

Lines changed: 11 additions & 11 deletions

genai/controlled-generation/ctrlgen-with-enum-schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function generateContent(
3636
};
3737

3838
const response = await ai.models.generateContent({
39-
model: 'gemini-2.0-flash',
39+
model: 'gemini-2.5-flash',
4040
contents: 'What type of instrument is an oboe?',
4141
config: {
4242
responseMimeType: 'text/x.enum',

genai/count-tokens/counttoken-with-txt-vid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function countTokens(
3838
};
3939

4040
const response = await ai.models.countTokens({
41-
model: 'gemini-2.0-flash',
41+
model: 'gemini-2.5-flash',
4242
contents: [video, 'Provide a description of the video.'],
4343
});
4444

genai/count-tokens/counttoken-with-txt.js

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

3333
const response = await ai.models.countTokens({
34-
model: 'gemini-2.0-flash',
34+
model: 'gemini-2.5-flash',
3535
contents: 'What is the highest mountain in Africa?',
3636
});
3737

genai/text-generation/textgen-sys-instr-with-txt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function generateContent(
3636
`;
3737

3838
const response = await ai.models.generateContent({
39-
model: 'gemini-2.0-flash',
39+
model: 'gemini-2.5-flash',
4040
contents: prompt,
4141
config: {
4242
systemInstruction: [

genai/text-generation/textgen-with-multi-img.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function generateContent(
4545
};
4646

4747
const response = await ai.models.generateContent({
48-
model: 'gemini-2.0-flash',
48+
model: 'gemini-2.5-flash',
4949
contents: [
5050
image1,
5151
image2,

genai/text-generation/textgen-with-txt-img.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function generateContent(
3838
};
3939

4040
const response = await ai.models.generateContent({
41-
model: 'gemini-2.0-flash',
41+
model: 'gemini-2.5-flash',
4242
contents: [image, 'What is shown in this image?'],
4343
});
4444

genai/text-generation/textgen-with-txt-stream.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.generateContentStream({
34-
model: 'gemini-2.0-flash',
34+
model: 'gemini-2.5-flash',
3535
contents: 'Why is the sky blue?',
3636
});
3737

genai/text-generation/textgen-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.0-flash',
34+
model: 'gemini-2.5-flash',
3535
contents: 'How does AI work?',
3636
});
3737

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function generateContent(
4444
};
4545

4646
const response = await ai.models.generateContent({
47-
model: 'gemini-2.0-flash',
47+
model: 'gemini-2.5-flash',
4848
contents: [video, prompt],
4949
});
5050

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

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

33-
const MODEL_NAME = 'gemini-2.0-flash';
33+
const MODEL_NAME = 'gemini-2.5-flash';
3434

3535
const response = await ai.models.generateContent({
3636
model: MODEL_NAME,

0 commit comments

Comments
 (0)