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

157 天前
 lanweizhujiao
```
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"}}
```
1239 次点击
所在节点    问与答
4 条回复
lanweizhujiao
157 天前
有什么方案 可以解决这个问题吗?
yadiman
157 天前
我用 one-api 在可用区域,比如美国搭建 api 中转。
ZeroClover
157 天前
Cloudflare 明确说了不会帮助绕过 Geo 限制,会回传访问时的 Geo 信息

怎么解决?你怎么解决直连 OpenAI API 就怎么解决这个
lanweizhujiao
157 天前
@ZeroClover 懂了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1125881

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX