3e99a7b9 by RSA

fix

1 parent 13d695fc
Showing 1 changed file with 0 additions and 7 deletions
......@@ -42,13 +42,6 @@ app.post('/api', async (req, res) => {
}
let query_prompt = `${greetingPrompt}\n${message}`;
let greetingPrompt = 'Hello, how can I assist you?'
const greetings = ['hi', 'hello', 'hey']
if (greetings.some((greeting) => message.toLowerCase().includes(greeting))) {
greetingPrompt = 'Hello, how can I help you today?'
}
let query_prompt = `${greetingPrompt}\n${message}`;
str_length = req.body.message.split(' ').length;
if (str_length>=800){
arr_body = req.body.message.split("\n");
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!