Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 550 Bytes

File metadata and controls

28 lines (19 loc) · 550 Bytes

FastAPI Backend

A simple FastAPI server with a /chat endpoint.

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the server:
uvicorn main:app --reload

The server will be available at http://localhost:8000

API Endpoints

  • GET /: Health check endpoint
  • POST /chat: Chat endpoint that accepts JSON with a "message" field

API Documentation

Once the server is running, you can access the auto-generated API documentation at: