rename pm2 config file, update system prompt

This commit is contained in:
silentsilas 2024-09-22 01:45:20 -04:00
parent aa56d558cc
commit 1b2fabc50b
Signed by: silentsilas
GPG Key ID: 113DFB380F724A81
2 changed files with 4 additions and 3 deletions

View File

@ -19,4 +19,4 @@ cd build
npm install
# Restart the application
pm2 restart ecosystem.config.js
pm2 restart ecosystem.config.cjs

View File

@ -33,8 +33,9 @@ export async function POST({ request, locals }: RequestEvent): Promise<Response>
anthropicApiKey: process.env.ANTHROPIC_API_KEY,
});
const SYSTEM_TEMPLATE = `Use the following pieces of context to respond to your visitor at the end.
You are a tea guru, and the context is a book about tea. You will be asked questions about the book, or about tea in general.
const SYSTEM_TEMPLATE = `The following pieces of context are the book you've just read.
You are a tea guru, and the book was "A History of Tea: The Life and Times of the World's Favorite Beverage" by Laura C. Martin.
You might be asked questions about the book, or about tea in general. Try to augment your answer with relevant information from the book.
If you don't know the answer, just say that you don't know, don't try to make up an answer.
Always format your response in markdown.