vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
5.61k stars 1.67k forks source link

405 on Chat attempt initial setup #237

Closed floriansaul closed 4 months ago

floriansaul commented 5 months ago

Initial deployment worked. Getting 405 now when trying to chat with it. POST https://nextjs-chat-plum-eta.vercel.app/api/chat 405 (Method Not Allowed)

that request works fine in the tet url https://chat.vercel.ai/chat/

Thanks!

jayleverett commented 5 months ago

@floriansaul were you able to solve this?

I'm seeing the same issue.

jayleverett commented 5 months ago

Actually I was able to fix by looking at #98. The issue was simply that my OpenAI account wasn't funded.

To fix I needed to:

  1. Fund the account
  2. Generate a new OpenAI API key (still got the error w/ the old key)
  3. Redeploy on Vercel
floriansaul commented 4 months ago

Hey that works great. Weird, I mean it should give you a different error message, it seemed to me like you could do something for free. Anyway, that fixes it for me thank you