Hi! I am trying to use Vercel for the first time to deploy a basic site that calls back to the OpenAI API, but I keep getting a 404 error. My domain is below:
I don’t have the source code, so I can’t say for sure what needs to be adjusted. You may just need to set openAI_deploy-main as the output directory in project settings. If it turns out that a different config change is needed, we can still help. Just give us some more info about your app or share a public repo like @aruns suggested.
I was a bit concerned about the security, though. You might want to add some kind of authentication or something. Right now, I can just make a POST to https://arlington-heist.vercel.app/api/index and effectively use your API key at no cost to me.
Hopefully I’m not being too picky
Hi @bestcodes, glad that it’s working now. For security and safety, it’s better to implement some authentication logic in the API handler. Remember web applications are always accessible (when deployed on the internet), so it’s up to the developers how they prevent abuse.