@BenParr64 Just to clarify, this is a call that is happening within a serverless function, and thus the question is about serverless function execution limits?
If so, Netlify can bump the allowed execution time up for you provided that you’re on a paid plan.
My recommendation is to by-pass NextJS APIs altogether and use a different backend, for example, Cloud Firebase Functions. You could configure the timeout up to 9 minutes, without having to pay a monthly bill.
I am running into the same issue with a Next.js/OpenAI timeout and was wondering if you would be able to increase the Lamda timeout duration for:
dev-quest.netlify.app
Thanks for reaching out! I’ve increased the function time limit to 26 seconds for the site. You’ll need to re-deploy the site for the change to take effect.