Yeah that doesn’t solve the issue and I’m forced to redirect my worker to another edge function so that the request to openai will go through another region. But that means Cloudflare worker is now redundant and can be gotten rid in my next app update.
Hope that Cloudflare can look into this as AI is getting more and more common while their HK server is now doing more harm to it than good.
If you’re on Cloudflare free plans and in some Asian countries, you maybe routed through Cloudflare Datacenters not in the allowed country lists i.e. Hong Kong. Cloudflare Business or higher paid plans would have more probability of not being routed through such countries but no real guarantee unless on Cloudflare Enterprise plans.
So if using Cloudflare non-enterprise or free plans, try using openrouter.ai instead to access your desired LLM model. Works with Cloudflare AI Gateway OpenRouter · Cloudflare AI Gateway docs and Cloudflare Workers
Have tried, openrouter still gets region error when provider is openai, Smart placements does not work too. Seems like there is no solution to this as long as colo is from HK.
Unless we can restrict certain colo HK and restricted areas, Will be cancelling my cloudflare worker plan