Build A ChatGPT Clone with Strapi

In the “Creating our first controller” section. I seem to be getting hung up here:

const response = await getResponse(newSession, newSession.initialPrompt);

getResponse never actually returns anything, I never make it to the next line which is

response.sessionId = sessionId;