Which template are you trying to deploy to Vercel? If you can send me the link to the template/GitHub issue/support ticket, I can try and debug it for you!
You also need to define OPENAI_API_KEY env variable.
Will add instructions in the github README.