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; } 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; } /**