leptonai / nextjs-with-lepton

A Next.js starter with the Lepton LLM API

Home Page:https://nextjs-with-lepton.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js Lepton AI Starter

This is a Next.js project using the Lepton AI. It is a starter template to help you get started with building applications that use the Lepton API.

DEMO

Getting Started

  1. Clone the repository and cd into the directory

    git clone git@github.com:leptonai/nextjs-with-lepton.git my-nextjs-with-lepton
    # or
    git clone https://github.com/leptonai/nextjs-with-lepton.git my-nextjs-with-lepton
    
    cd my-nextjs-with-lepton
  2. Install the dependencies

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  3. Copy .env.local.example to .env.local and set the LEPTON_API_TOKEN to your Lepton API token.

    You can get your Lepton API token from the Lepton AI Dashboard

    cp .env.local.example .env.local
  4. Start the development server

    npm run dev

    Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

Deploy with Vercel

Help Links

About

A Next.js starter with the Lepton LLM API

https://nextjs-with-lepton.vercel.app


Languages

Language:TypeScript 84.4%Language:CSS 11.3%Language:JavaScript 4.2%