V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jqknono
V2EX  ›  程序员

Openrouter 部分免费模型不支持中文请求

  •  
  •   jqknono · 3 小时 11 分钟前 · 179 次点击

    Openrouter 部分免费模型不支持中文请求

    第一条总是 429, 第二条可以正常响应. Opus 4.6 Max/GPT-5.2 Extra High 都未能确认 bug 原因, 最后确认是不支持回答中文请求, 我手动验出来的.

    curl https://openrouter.ai/api/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer sk-or-v1-xxxxxxxxxxxxxxxxxxxxxx" \
      -d '{
      "model": "openai/gpt-oss-120b:free",
      "messages": [
        {
          "role": "user",
          "content": "你是一个专业的本地化翻译专家"
        }
      ]
    }'
    
    curl https://openrouter.ai/api/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer sk-or-v1-xxxxxxxxxxxxxxxxxxxxxx" \
      -d '{
      "model": "openai/gpt-oss-120b:free",
      "messages": [
        {
          "role": "user",
          "content": "You are a professional localization translation expert"
        }
      ]
    }'
    

    并非携带中文就返回 429, 只要开头几句提示词是中文就返 429. 如果是英文提示词要求翻译内容, 后续内容含有中文则不会返 429. 可能是阻拦意图, 而非阻拦字符.

    顺便推一下我的翻译插件: https://github.com/Project-Translation/project_translator

    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4356 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:11 · PVG 16:11 · LAX 00:11 · JFK 03:11
    ♥ Do have faith in what you're doing.