Skip to content

Commit 73153f6

Browse files
author
Guiners
committed
adding samples, test, lints
1 parent 63dc8fe commit 73153f6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

genai/content-cache/content-cache-delete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2323
async function generateContent(
2424
projectId = GOOGLE_CLOUD_PROJECT,
2525
location = GOOGLE_CLOUD_LOCATION,
26-
cacheName
26+
cacheName = 'example-cache'
2727
) {
2828
const ai = new GoogleGenAI({
2929
vertexai: true,

genai/content-cache/content-cache-update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2424
async function generateContent(
2525
projectId = GOOGLE_CLOUD_PROJECT,
2626
location = GOOGLE_CLOUD_LOCATION,
27-
cacheName
27+
cacheName = 'example-cache'
2828
) {
2929
const ai = new GoogleGenAI({
3030
vertexai: true,

genai/content-cache/content-cache-use-with-txt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2424
async function generateContent(
2525
projectId = GOOGLE_CLOUD_PROJECT,
2626
location = GOOGLE_CLOUD_LOCATION,
27-
cacheName
27+
cacheName = 'example-cache'
2828
) {
2929
const ai = new GoogleGenAI({
3030
vertexai: true,

0 commit comments

Comments
 (0)