Skip to content

Commit 4be5b0e

Browse files
authored
Make SafetySettings.method optional (#8567)
* Make SafetySettings.method optional * Update API reports --------- Co-authored-by: hsubox76 <[email protected]>
1 parent 56507af commit 4be5b0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/api-review/vertexai.api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ export interface SafetySetting {
541541
// (undocumented)
542542
category: HarmCategory;
543543
// (undocumented)
544-
method: HarmBlockMethod;
544+
method?: HarmBlockMethod;
545545
// (undocumented)
546546
threshold: HarmBlockThreshold;
547547
}

packages/vertexai/src/types/requests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface GenerateContentRequest extends BaseParams {
6363
export interface SafetySetting {
6464
category: HarmCategory;
6565
threshold: HarmBlockThreshold;
66-
method: HarmBlockMethod;
66+
method?: HarmBlockMethod;
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)