写了个 worker 脚本,昨天开始失效了,返回 unsupported_country_region_territory
openai 是如何识别到的?
写了个 worker 脚本,昨天开始失效了,返回 unsupported_country_region_territory
openai 是如何识别到的?
|
hangouts99Jul 12, 2024
1
不要反代,头部会被识别
|
|
caomingjunJul 12, 2024
2
别用 worker 反代,请求头会带一个 CF-Worker
https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-worker |
|
imldyJul 12, 2024
3
可以试试 vercel ,可以指定边缘计算节点所在的区域
|
|
ZeroCloverJul 12, 2024
4
|
|
SilentlyJul 12, 2024 via iPhone
5
cf 的 ai 网关不好用吗?
|
|
c0okiesJul 12, 2024
6
楼上正解,可以直接用 cloudflare 的 worker ai 或者 ai-gateway
|
|
leesaJul 12, 2024
7
@caomingjun 可以编辑 request headers 从而删除 CF-Worker 吗?
|
|
winterpotatoJul 12, 2024
8
`cf-connecting-ip` 就会写你的真实 IP 。AI Gateway 多好
|
|
caomingjunJul 12, 2024 via Android
9
@leesa 不能,它的目的就是方便你屏蔽甚至举报滥用
|
|
love4taylorJul 12, 2024
10
AI Gateway 能无视 IP 检测?不对吧,为啥我这依旧会被提示
https://shottr.cc/s/KwS2/SCR-20240712-ubp.png |
|
love4taylorJul 12, 2024
11
|
|
tonyaikenJul 13, 2024 via iPhone
12
|
|
daisyfloorJul 13, 2024
13
|
|
no996Jul 13, 2024
14
亲测,使用 CF 的 ai gateway 会检测来源 ip 地址,我使用 HK 的服务器提示不受支持,换了美国的就正常
|
|
liujunchenJul 15, 2024
15
cloudflare 的 ai gateway 也失效了,能检测到国内 ip ,估计 ai gateway 把访问 ip 传到 openai 去了
|
|
leesaAug 25, 2024
16
@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/ |
|
sytoneSep 22, 2024
17
亲测删除`cf-connecting-ip`还是不可用。。。
|