All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.zhangjh.gemini.common.SafetyThreshHoldEnum Maven / Gradle / Ivy

package me.zhangjh.gemini.common;

import lombok.Getter;

/**
 * @author [email protected]
 * @date 20:03 2023/12/22
 * @Description
 */
@Getter
public enum SafetyThreshHoldEnum {

    BLOCK_NONE("BLOCK_NONE", "始终显示(无论是否存在不安全内容的概率)"),
    BLOCK_ONLY_HIGH("BLOCK_ONLY_HIGH", "在存在高风险的不安全内容时屏蔽"),
    BLOCK_MEDIUM_AND_ABOVE("BLOCK_MEDIUM_AND_ABOVE", "出现中等或高概率的不安全内容时屏蔽"),
    BLOCK_LOW_AND_ABOVE("BLOCK_MEDIUM_AND_ABOVE", "在存在不安全内容的几率较低、中等或较高时屏蔽"),
    HARM_BLOCK_THRESHOLD_UNSPECIFIED("HARM_BLOCK_THRESHOLD_UNSPECIFIED", "未指定阈值,使用默认阈值进行屏蔽"),
    ;

    private final String code;
    private final String desc;

    SafetyThreshHoldEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy