SafetySetting interface

可作为请求参数的一部分发送的安全设置。

签名

export interface SafetySetting 

属性

属性 类型 说明
category 危害类别
方法 HarmBlockMethod
阈值 HarmBlockThreshold

SecuritySetting.category

签名

category: HarmCategory;

SecuritySetting.method

签名

method: HarmBlockMethod;

SafetySetting.threshold

签名

threshold: HarmBlockThreshold;