From c3690222f62e69fc43ff909de6d49e5cf533977c Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Mon, 14 Oct 2024 09:23:10 -0700 Subject: [PATCH 1/2] Make SafetySettings.method optional --- packages/vertexai/src/types/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vertexai/src/types/requests.ts b/packages/vertexai/src/types/requests.ts index c844ddfb878..e86918a8ed8 100644 --- a/packages/vertexai/src/types/requests.ts +++ b/packages/vertexai/src/types/requests.ts @@ -63,7 +63,7 @@ export interface GenerateContentRequest extends BaseParams { export interface SafetySetting { category: HarmCategory; threshold: HarmBlockThreshold; - method: HarmBlockMethod; + method?: HarmBlockMethod; } /** From df9e51c6562d0747642e900b16a8eb37fde5e74c Mon Sep 17 00:00:00 2001 From: hsubox76 Date: Mon, 14 Oct 2024 16:38:16 +0000 Subject: [PATCH 2/2] Update API reports --- common/api-review/vertexai.api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/api-review/vertexai.api.md b/common/api-review/vertexai.api.md index a3f7b30b994..041bc62451f 100644 --- a/common/api-review/vertexai.api.md +++ b/common/api-review/vertexai.api.md @@ -541,7 +541,7 @@ export interface SafetySetting { // (undocumented) category: HarmCategory; // (undocumented) - method: HarmBlockMethod; + method?: HarmBlockMethod; // (undocumented) threshold: HarmBlockThreshold; }