宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
查看: 2812|回复: 25

为什么openai知道我说国内流量?

[复制链接]
发表于 2024-6-25 14:18:11 | 显示全部楼层 |阅读模式
收到了这个邮件
  1. Our data shows that your organization has API traffic from a region that OpenAI does not currently support. You can find the supported countries and territories here. We will be taking additional measures to block API traffic from regions that are not on our supported countries and territories list starting on July 9. To continue using OpenAI’s services, you will need to access the service in a supported region.
复制代码



这是我的转发程序

  1. def proxy_to_openai(path):
  2.     openai_base = "https://api.openai.com"
  3.     auth_header = {"Authorization": f"Bearer {api_key}"}
  4.     headers = {"Content-Type": "application/json"}
  5.     headers.update(auth_header)
  6.     response = requests.request(
  7.         request.method,
  8.         openai_base + "/" + path,
  9.         headers=headers,
  10.         params=request.args or None,
  11.         data=request.data or None,
  12.         stream=True,
  13.     )
  14.     response.headers.pop("Content-Encoding", None)
  15.     response.headers.pop("Transfer-Encoding", None)
  16.     return app.response_class(response=response, status=response.status_code, headers=dict(response.headers))
复制代码


程序放在圣何塞的机器上, 但还是收到了警告邮件.

有大佬知道为什么吗?
发表于 2024-6-26 10:59:17 | 显示全部楼层
人家搞AI的,分析不出你是CN的,还搞鸡毛AI
发表于 2024-6-25 14:21:05 | 显示全部楼层
因为你用中文问问题阿

点评

这是不准确的,难道圣何塞就没有华人 :)  发表于 2024-7-8 19:07
发表于 2024-7-8 19:10:02 | 显示全部楼层
就这还用得上人工智能来判断?
你一机房IP,天天简中,东八时区,杀一千个最多误伤一个。
发表于 2024-6-26 10:34:02 来自手机 | 显示全部楼层
也可以根据流量的时间分布推测的吧,毕竟和美国差10个时区,略明显。
发表于 2024-6-25 15:21:28 | 显示全部楼层
CN也有很多华裔用的啊。他靠这个判断不太可能
 楼主| 发表于 2024-6-25 15:08:35 | 显示全部楼层
thaizxj 发表于 2024-6-25 14:26
美国的IP  都是用中文     一看就是CN的人在使用阿

马来西亚、新加坡不也用中文吗
 楼主| 发表于 2024-6-25 14:21:41 | 显示全部楼层
thaizxj 发表于 2024-6-25 14:21
因为你用中文问问题阿

不会吧??? 那还玩毛啊。。
发表于 2024-6-25 14:25:48 | 显示全部楼层
thaizxj 发表于 2024-6-25 14:21
因为你用中文问问题阿

我天天用ZH-CN问,以后不能了吗?
发表于 2024-6-25 14:25:59 | 显示全部楼层
是不是炸胡的 中转了难不成还封?
发表于 2024-6-25 14:26:33 | 显示全部楼层
Marss 发表于 2024-6-25 14:25
我天天用ZH-CN问,以后不能了吗?

美国的IP  都是用中文     一看就是CN的人在使用阿
 楼主| 发表于 2024-6-25 14:27:08 | 显示全部楼层
dragonfsky 发表于 2024-6-25 14:25
是不是炸胡的 中转了难不成还封?

是啊 我是没想出来原因。。
发表于 2024-6-25 14:35:23 | 显示全部楼层
这么说,我以后要用英文问问题了....(无语,看着费劲)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|FastFib VPS论坛

GMT+8, 2024-9-20 10:52 , Processed in 0.065658 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表