lanweizhujiao
V2EX  ›  问与答

Cloudflare 对 openai 的 ai gateway 会被识别到国内 ip

  •  1
     
  •   lanweizhujiao · Apr 16, 2025 · 2164 views
    This topic created in 427 days ago, the information mentioned may be changed or developed.
    ```
    curl -X POST https://gateway.ai.cloudflare.com/v1/bfbf65e6b0ccd9faec9809c0eff9688e/ai-gatway/openai/chat/completions \
    --header 'Authorization: Bearer OPENAI_TOKEN' \
    --header 'Content-Type: application/json' \
    --data '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "What is Cloudflare?"}]}'
    {"error":{"code":"unsupported_country_region_territory","message":"Country, region, or territory not supported","param":null,"type":"request_forbidden"}}
    ```
    4 replies    2025-04-16 15:48:07 +08:00
    lanweizhujiao
        1
    lanweizhujiao  
    OP
       Apr 16, 2025
    有什么方案 可以解决这个问题吗?
    yadiman
        2
    yadiman  
       Apr 16, 2025 via iPhone
    我用 one-api 在可用区域,比如美国搭建 api 中转。
    ZeroClover
        3
    ZeroClover  
       Apr 16, 2025
    Cloudflare 明确说了不会帮助绕过 Geo 限制,会回传访问时的 Geo 信息

    怎么解决?你怎么解决直连 OpenAI API 就怎么解决这个
    lanweizhujiao
        4
    lanweizhujiao  
    OP
       Apr 16, 2025
    @ZeroClover 懂了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1675 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:23 · PVG 00:23 · LAX 09:23 · JFK 12:23
    ♥ Do have faith in what you're doing.