Skip to content

developershivam-sudo/chatbot

Repository files navigation

Chatbot Project

🚀 Getting Started

  1. Install dependencies:

    npm install
  2. Set up environment variables:

    • Create a .env.local file in the root directory.
    • Add your OpenAI API key:
      OPEN_API_KEY=your_openai_api_key
  3. Run the development server:

    npm run dev
  4. Open your browser:


📝 Project Structure

  • app/page.js — Main page component. Edit this file to change the homepage UI.
  • app/api/chat/route.js — API route for standard chat completions.
  • app/api/chat-stream/route.js — API route for streaming chat completions (SSE).
  • public/ — Static assets (SVGs, icons, etc).
  • globals.css — Global styles.

🖋️ Notes

  • The project uses next/font for font optimization and loads Geist.
  • The API routes require a valid OpenAI API key set in your environment variables.

📚 Learn More

To learn more about Next.js and related technologies:


🚢 Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform.

See Next.js deployment documentation for more details.

Releases

No releases published

Packages

 
 
 

Contributors