Skip to content

feat(genai): bumping version and fixing tests #4146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "c8 mocha -p -j 2 --timeout 2400000 test/*.test.js test/**/*.test.js"
},
"dependencies": {
"@google/genai": "^0.13.0",
"@google/genai": "1.12.0",
"axios": "^1.6.2",
"supertest": "^7.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion genai/text-generation/textgen-with-txt-img.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function generateContent(
};

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

Expand Down
2 changes: 1 addition & 1 deletion genai/tools/tools-code-exec-with-txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function generateContent(
});

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