[ol]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.[/ol]复制代码
这是我的转发程序
[ol]
def proxy_to_openai(path):
openai_base = "https://api.openai.com"
auth_header = {"Authorization": f"Bearer {api_key}"}
headers = {"Content-Type": "application/json"}
headers.update(auth_header)
response = requests.request(
request.method,
openai_base + "/" + path,
headers=headers,
params=request.args or None,
data=request.data or None,
stream=True,
)
response.headers.pop("Content-Encoding", None)
response.headers.pop("Transfer-Encoding", None)
return app.response_class(response=response, status=response.status_code, headers=dict(response.headers))[/ol]复制代码
程序放在圣何塞的机器上, 但还是收到了警告邮件.
有大佬知道为什么吗?