SafetySetting interface

可在要求參數中傳送的安全設定。

簽名:

export interface SafetySetting 

屬性

屬性 類型 說明
category 有害類別
方法 有害封鎖方法
門檻 傷害封鎖門檻

SafetySetting.category

簽名:

category: HarmCategory;

SafetySetting.method

簽名:

method: HarmBlockMethod;

SafetySetting.threshold

簽名:

threshold: HarmBlockThreshold;