Skip to content

Conversation

@rooney011
Copy link
Contributor

image

What’s done:
• Built ChatLayout, ChatMessages, and ChatInput components.
• Centered chat card with scrollable messages.
• Styled input and message bubbles.
• Integrated useChat hook to handle message state.

What needs to be done:
• Fix POST request from frontend to /api/chat so AI responses work.
• Ensure handleSubmit correctly sends messages without page reload.
• UI improvements: loading indicator, timestamps, avatars

@CharanMN7
Copy link
Contributor

Screenshot 2025-11-14 at 10 55 35 PM

Try this layout. You can try it here: Vercel Chatbot Template

@rooney011
Copy link
ContributorAuthor

Okay 👍🏻

@CharanMN7CharanMN7 added enhancement New feature or request intermediate This requires intermediate understanding and skills relating to the issue. labels Nov 15, 2025
@rooney011
Copy link
ContributorAuthor

Need help with that chat bubble. how to build it?
image

@CharanMN7
Copy link
Contributor

Can't see the image... But here's something you'll find useful: AI Elements - AI SDK

@rooney011
Copy link
ContributorAuthor

okay

@rooney011
Copy link
ContributorAuthor

Error: Vercel AI Gateway blocked the request (403 Forbidden)

AI Gateway requires a valid credit card on file to service requests.
Please visit Vercel Dashboard to add a card and unlock free credits.

Endpoint:
https://ai-gateway.vercel.sh/v1/ai/language-model

Details:

  • status: 403
  • type: customer_verification_required
  • message: "AI Gateway requires a valid credit card on file to service requests."

This means my API call is being routed through Vercel's AI Gateway,
and it refuses to process the request because no credit card is added.

I want to know whether I should:

  1. Disable Vercel AI Gateway and use another model directly,
  2. Or switch to another provider like Gemini/OpenAI without the gateway.

@CharanMN7
Copy link
Contributor

Oh! I haven't seen something like this. Push them commits in @rooney011 . That way I can test out this thing and let you know.

Make sure you make small and numerous commits (do not commit all files in one single commit).

@rooney011
Copy link
ContributorAuthor

yeah okay

@rooney011
Copy link
ContributorAuthor

I’ve made the commits. Should I go ahead and open a PR?

@CharanMN7
Copy link
Contributor

Push them in this PR itself. We don't need a new one.

@rooney011
Copy link
ContributorAuthor

i have messed up code in this branch so i have created a new branch and worked on it so can i make a new PR?

@CharanMN7
Copy link
Contributor

Oh! that's cool. I saw the other PR. Can I close this without merging then?

@rooney011
Copy link
ContributorAuthor

Yeah

@CharanMN7
Copy link
Contributor

@rooney011 also, let me know if I can close this PR without merging, if we don't need this anymore.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or requestintermediateThis requires intermediate understanding and skills relating to the issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rooney011@CharanMN7