Bạn có thể gửi chế độ cài đặt an toàn trong tham số yêu cầu.
Chữ ký:
export interface SafetySetting
Thuộc tính
Tài sản | Loại | Mô tả |
---|---|---|
category | Danh mục xúc phạm | |
phương thức | HarmBlockMethod | |
ngưỡng | HarmBlockThreshold |
Danh mục chế độ cài đặt an toàn
Chữ ký:
category: HarmCategory;
Cài đặt an toàn.method
Chữ ký:
method: HarmBlockMethod;
Cài đặt an toàn.threshold
Chữ ký:
threshold: HarmBlockThreshold;