V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
feirisu
V2EX  ›  OpenAI

Gemini Pro 的 API 和国内的模型一样有前置关键词过滤

  •  
  •   feirisu · Dec 19, 2023 · 2205 views
    This topic created in 861 days ago, the information mentioned may be changed or developed.
    和国内模型一样,有前置关键词过滤,连脏话都不能发,"我草!"、"傻逼"都会 block 。
    比如我想用 api 在文本审核、文章审核上,只要文本里有一点脏话,直接就 block 。


    注:"我草"正常,"我草!"被屏蔽
    6 replies    2023-12-20 11:51:24 +08:00
    Sezxy
        1
    Sezxy  
       Dec 19, 2023 via Android
    它自己就说自己是百度大模型,不奇怪😂😂
    daisyfloor
        2
    daisyfloor  
       Dec 19, 2023   ❤️ 1
    safety_settings = [
    {
    "category": "HARM_CATEGORY_HARASSMENT",
    "threshold": "BLOCK_NONE"
    },
    {
    "category": "HARM_CATEGORY_HATE_SPEECH",
    "threshold": "BLOCK_NONE"
    },
    {
    "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
    "threshold": "BLOCK_NONE"
    },
    {
    "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
    "threshold": "BLOCK_NONE"
    }
    ]
    3oq5kOT3OxK28MA9
        3
    3oq5kOT3OxK28MA9  
       Dec 19, 2023
    套壳百度大模型,哈哈哈


    ps:ChatGPT 中转: https://oneai.evanora.top/
    PinkPumpkin
        4
    PinkPumpkin  
       Dec 19, 2023
    API 文档建议多读
    aiqinxuancai
        5
    aiqinxuancai  
       Dec 19, 2023
    @daisyfloor 原来还有设置
    feirisu
        6
    feirisu  
    OP
       Dec 20, 2023
    @lbingl 好的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1084 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 22:43 · PVG 06:43 · LAX 15:43 · JFK 18:43
    ♥ Do have faith in what you're doing.