Skip to content

Conversation

jerichosy
Copy link

From Vercel docs:

By default, Edge Functions execute in the region that is geographically closest to the incoming request,

This can cause issues when the Edge Functions execute in a region that is unsupported by OpenAI, like so:
image
This has also been noted by Vercel themselves: https://vercel.com/changelog/openai-will-not-support-the-hong-kong-region-hkg1-for-functions

To fix, execute on the Edge Functions located in the US instead. This is also best practice acdg. to OpenAI's docs (and Vercel's docs) since that's where their servers are located anyway which will minimize roundtrip times.

See https://vercel.com/changelog/openai-will-not-support-the-hong-kong-region-hkg1-for-functions (unsure if our edge was actually on HKG but same issue).

Query from US servers instead since that's where OpenAI's servers are located anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant