Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c439b7b3b | |||
| 75656c8f17 |
199320
bs_gamedu_backup.sql
Normal file
199320
bs_gamedu_backup.sql
Normal file
File diff suppressed because one or more lines are too long
1
info.txt
Normal file
1
info.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pm2 start --name dev-iimtt-api 'yarn start' --interpreter none
|
||||||
@@ -43,8 +43,8 @@ app.use(mongoSanitize());
|
|||||||
app.use(compression());
|
app.use(compression());
|
||||||
|
|
||||||
// enable cors
|
// enable cors
|
||||||
app.use(cors());
|
// app.use(cors());
|
||||||
app.options('*', cors());
|
// app.options('*', cors());
|
||||||
|
|
||||||
//# Need to implement
|
//# Need to implement
|
||||||
// const allowedOrigins = process.env.CORS_ALLOWED_ORIGINS.split(',');
|
// const allowedOrigins = process.env.CORS_ALLOWED_ORIGINS.split(',');
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const aiFollowupQuestion = async (req, res) => {
|
|||||||
conversation = {
|
conversation = {
|
||||||
sessionId: newSessionId,
|
sessionId: newSessionId,
|
||||||
conversationHistory: [
|
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 },
|
{ role: 'user', content: prompt },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user