SafetySetting interface

可做為要求參數傳送的安全設定。

簽名:

export interface SafetySetting 

屬性

屬性 類型 說明
category 有害類別
方法 HarmBlockMethod
門檻 HarmBlockThreshold

SafetySetting.category

簽名:

category: HarmCategory;

SafetySetting.method

簽名:

method: HarmBlockMethod;

SafetySetting.threshold

簽名:

threshold: HarmBlockThreshold;