lanweizhujiao
V2EX  ›  问与答

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

  •  1
     
  •   lanweizhujiao · Apr 16, 2025 · 2730 views
    This topic created in 584 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
    lanweizhujiao
    OP
    Apr 16, 2025
    1
    有什么方案 可以解决这个问题吗?
    yadiman
    yadiman
    Apr 16, 2025 via iPhone
    2
    我用 one-api 在可用区域,比如美国搭建 api 中转。
    ZeroClover
    ZeroClover
    Apr 16, 2025
    3
    Cloudflare 明确说了不会帮助绕过 Geo 限制,会回传访问时的 Geo 信息

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