V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
feirisu
V2EX  ›  OpenAI

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

  •  
  •   feirisu · 130 天前 · 1201 次点击
    这是一个创建于 130 天前的主题,其中的信息可能已经有所发展或是发生改变。
    和国内模型一样,有前置关键词过滤,连脏话都不能发,"我草!"、"傻逼"都会 block 。
    比如我想用 api 在文本审核、文章审核上,只要文本里有一点脏话,直接就 block 。


    注:"我草"正常,"我草!"被屏蔽
    6 条回复    2023-12-20 11:51:24 +08:00
    Goooooos
        1
    Goooooos  
       130 天前 via Android
    它自己就说自己是百度大模型,不奇怪😂😂
    daisyfloor
        2
    daisyfloor  
       130 天前   ❤️ 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"
    }
    ]
    killianverenawn
        3
    killianverenawn  
       130 天前
    套壳百度大模型,哈哈哈


    ps:ChatGPT 中转: https://oneai.evanora.top/
    lbingl
        4
    lbingl  
       130 天前
    API 文档建议多读
    aiqinxuancai
        5
    aiqinxuancai  
       130 天前
    @daisyfloor 原来还有设置
    feirisu
        6
    feirisu  
    OP
       129 天前
    @lbingl 好的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1848 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:18 · PVG 00:18 · LAX 09:18 · JFK 12:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.