• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jqknono
V2EX  ›  程序员

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

  •  
  •   jqknono · Feb 10 · 1754 views
    This topic created in 99 days ago, the information mentioned may be changed or developed.

    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1183 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.