Skip to content

Commit

Permalink
Make SafetySettings.method optional (#8567)
Browse files Browse the repository at this point in the history
* Make SafetySettings.method optional

* Update API reports

---------

Co-authored-by: hsubox76 <[email protected]>
  • Loading branch information
hsubox76 and hsubox76 authored Oct 15, 2024
1 parent 56507af commit 4be5b0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/api-review/vertexai.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export interface SafetySetting {
// (undocumented)
category: HarmCategory;
// (undocumented)
method: HarmBlockMethod;
method?: HarmBlockMethod;
// (undocumented)
threshold: HarmBlockThreshold;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vertexai/src/types/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface GenerateContentRequest extends BaseParams {
export interface SafetySetting {
category: HarmCategory;
threshold: HarmBlockThreshold;
method: HarmBlockMethod;
method?: HarmBlockMethod;
}

/**
Expand Down

0 comments on commit 4be5b0e

Please sign in to comment.