写了个 worker 脚本,昨天开始失效了,返回 unsupported_country_region_territory
openai 是如何识别到的?
1 hangouts99 2024-07-12 14:40:51 +08:00 不要反代,头部会被识别 |
2 caomingjun 2024-07-12 15:10:29 +08:00 别用 worker 反代,请求头会带一个 CF-Worker https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-worker |
![]() | 3 imldy 2024-07-12 15:14:03 +08:00 可以试试 vercel ,可以指定边缘计算节点所在的区域 |
4 ZeroClover 2024-07-12 15:50:54 +08:00 |
![]() | 5 Silently 2024-07-12 17:08:13 +08:00 via iPhone cf 的 ai 网关不好用吗? |
6 c0okies 2024-07-12 19:11:07 +08:00 楼上正解,可以直接用 cloudflare 的 worker ai 或者 ai-gateway |
7 leesa 2024-07-12 19:29:53 +08:00 @caomingjun 可以编辑 request headers 从而删除 CF-Worker 吗? |
![]() | 8 winterpotato 2024-07-12 20:54:18 +08:00 `cf-connecting-ip` 就会写你的真实 IP 。AI Gateway 多好 |
9 caomingjun 2024-07-12 20:57:57 +08:00 via Android @leesa 不能,它的目的就是方便你屏蔽甚至举报滥用 |
![]() | 10 love4taylor PRO AI Gateway 能无视 IP 检测?不对吧,为啥我这依旧会被提示 https://shottr.cc/s/KwS2/SCR-20240712-ubp.png |
![]() | 11 love4taylor PRO |
![]() | 12 tonyaiken 2024-07-13 04:40:16 +08:00 via iPhone |
13 daisyfloor 2024-07-13 11:02:36 +08:00 |
![]() | 14 yohole 2024-07-13 16:19:11 +08:00 亲测,使用 CF 的 ai gateway 会检测来源 ip 地址,我使用 HK 的服务器提示不受支持,换了美国的就正常 |
15 liujunchen 2024-07-15 12:42:09 +08:00 cloudflare 的 ai gateway 也失效了,能检测到国内 ip ,估计 ai gateway 把访问 ip 传到 openai 去了 |
16 leesa 2024-08-25 02:53:27 +08:00 @winterpotato 可以删`cf-connecting-ip` [删除访客 IP 标头 从发送到原始服务器的请求中删除可能包含访问者 IP 地址的 HTTP 标头。处理以下 HTTP 请求标头: cf-connecting-ip x-forwarded-for (请参阅下面的注释) true-client-ip] https://developers.cloudflare.com/rules/transform/managed-transforms/reference/ |
![]() | 17 sytone 2024-09-22 16:30:07 +08:00 亲测删除`cf-connecting-ip`还是不可用。。。 |