File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,10 @@ const {GoogleGenAI} = require('@google/genai');
2020const GOOGLE_CLOUD_PROJECT = process . env . GOOGLE_CLOUD_PROJECT ;
2121const GOOGLE_CLOUD_LOCATION = process . env . GOOGLE_CLOUD_LOCATION || 'global' ;
2222
23- const CACHE_NAME =
24- 'projects/448220130128/locations/us-central1/cachedContents/4839555542676406272' ;
25-
2623async function generateContent (
2724 projectId = GOOGLE_CLOUD_PROJECT ,
2825 location = GOOGLE_CLOUD_LOCATION ,
29- cacheName = CACHE_NAME
26+ cacheName
3027) {
3128 const ai = new GoogleGenAI ( {
3229 vertexai : true ,
Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ const {DateTime} = require('luxon');
2121const GOOGLE_CLOUD_PROJECT = process . env . GOOGLE_CLOUD_PROJECT ;
2222const GOOGLE_CLOUD_LOCATION = process . env . GOOGLE_CLOUD_LOCATION || 'global' ;
2323
24- const CACHE_NAME =
25- 'projects/448220130128/locations/us-central1/cachedContents/4839555542676406272' ;
2624
2725async function generateContent (
2826 projectId = GOOGLE_CLOUD_PROJECT ,
2927 location = GOOGLE_CLOUD_LOCATION ,
30- cacheName = CACHE_NAME
28+ cacheName
3129) {
3230 const ai = new GoogleGenAI ( {
3331 vertexai : true ,
Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ const {GoogleGenAI} = require('@google/genai');
2121const GOOGLE_CLOUD_PROJECT = process . env . GOOGLE_CLOUD_PROJECT ;
2222const GOOGLE_CLOUD_LOCATION = process . env . GOOGLE_CLOUD_LOCATION || 'global' ;
2323
24- const CACHE_NAME =
25- 'projects/448220130128/locations/us-central1/cachedContents/8186785596975349760' ;
2624
2725async function generateContent (
2826 projectId = GOOGLE_CLOUD_PROJECT ,
2927 location = GOOGLE_CLOUD_LOCATION ,
30- cacheName = CACHE_NAME
28+ cacheName
3129) {
3230 const ai = new GoogleGenAI ( {
3331 vertexai : true ,
You can’t perform that action at this time.
0 commit comments