Skip to content

Commit a74be42

Browse files
author
Guiners
committed
adding samples, test, lints
1 parent ac8dd76 commit a74be42

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

genai/thinking/thinking-budget-with-txt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ async function generateContent(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
27-
const ai = new GoogleGenAI({
27+
const client = new GoogleGenAI({
2828
vertexai: true,
2929
project: projectId,
3030
location: location,
3131
});
3232

33-
const response = await ai.models.generateContent({
33+
const response = await client.models.generateContent({
3434
model: 'gemini-2.5-flash',
3535
contents: 'solve x^2 + 4x + 4 = 0',
3636
config: {

genai/thinking/thinking-includethoughts-with-txt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ async function generateContent(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
27-
const ai = new GoogleGenAI({
27+
const client = new GoogleGenAI({
2828
vertexai: true,
2929
project: projectId,
3030
location: location,
3131
});
3232

33-
const response = await ai.models.generateContent({
33+
const response = await client.models.generateContent({
3434
model: 'gemini-2.5-pro',
3535
contents: 'solve x^2 + 4x + 4 = 0',
3636
config: {

genai/thinking/thinking-with-txt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ async function generateContent(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION
2626
) {
27-
const ai = new GoogleGenAI({
27+
const client = new GoogleGenAI({
2828
vertexai: true,
2929
project: projectId,
3030
location: location,
3131
});
3232

33-
const response = await ai.models.generateContent({
33+
const response = await client.models.generateContent({
3434
model: 'gemini-2.5-pro',
3535
contents: 'solve x^2 + 4x + 4 = 0',
3636
});

0 commit comments

Comments
 (0)