2 Commits

Author SHA1 Message Date
0c439b7b3b update from production 2026-02-24 06:04:04 +00:00
Kar
75656c8f17 Update src/routes/api/aiFollowupQuestion.js 2025-04-28 16:46:41 +00:00
4 changed files with 199324 additions and 3 deletions

199320
bs_gamedu_backup.sql Normal file

File diff suppressed because one or more lines are too long

1
info.txt Normal file
View File

@@ -0,0 +1 @@
pm2 start --name dev-iimtt-api 'yarn start' --interpreter none

View File

@@ -43,8 +43,8 @@ app.use(mongoSanitize());
app.use(compression());
// enable cors
app.use(cors());
app.options('*', cors());
// app.use(cors());
// app.options('*', cors());
//# Need to implement
// const allowedOrigins = process.env.CORS_ALLOWED_ORIGINS.split(',');

View File

@@ -52,7 +52,7 @@ const aiFollowupQuestion = async (req, res) => {
conversation = {
sessionId: newSessionId,
conversationHistory: [
{ role: 'system', content: 'answer within 10 words' },
{ role: 'system', content: 'Reply to the questions asked by a kindergarten child, Sound excited to answer and encourage the child to ask more questions in 30 words' },
{ role: 'user', content: prompt },
],
};