File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments