This is a C1 by Thesys project bootstrapped with create-next-app
First, generate a new API key from Thesys Console and then set it your environment variable.
export THESYS_API_KEY=<your-api-key>Install dependencies:
npm iThen, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
You can start editing your responses by modifying the system prompt in src/app/api/chat/route.ts.
To see a sample usage of the app, you can use the following query:
- Hi.
- Hi, I want to buy a hat.
- How many hats do you have?
- Check my order.
To learn more about Thesys C1, take a look at the C1 Documentation - learn about Thesys C1.
The easiest way to deploy your Next.js app is to use the Vercel Platform.