#Has anyone played around with this template by Vercel? https://github.com/vercel-labs/ai-chatbot

2 messages · Page 1 of 1 (latest)

brave mica
#

https://github.com/vercel-labs/ai-chatbot
In this, how can I change each new chat to be initalised with a starter context of 5k tokens and a system message

I'm trying to understand this repo https://github.com/vercel-labs/ai-chatbot
In the api/chat/route.ts, how can I have each chat to be initialised with a system message and a context to start with
here, they give messages
but, I want to give something like <attached picture>
A system message and a 5k context as well
Is that possible?

PS - noob in next.js

GitHub

A full-featured, hackable Next.js AI chatbot built by Vercel Labs - GitHub - vercel-labs/ai-chatbot: A full-featured, hackable Next.js AI chatbot built by Vercel Labs

proud pawnBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)