Compare commits
3 Commits
takeSnap
...
9da262baa3
| Author | SHA1 | Date | |
|---|---|---|---|
| 9da262baa3 | |||
| 0c439b7b3b | |||
| 75656c8f17 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,6 @@
|
||||
# Dependencies
|
||||
node_modules
|
||||
|
||||
bs_gamedu_backup.sql
|
||||
# yarn error logs
|
||||
yarn-error.log
|
||||
yarn.lock
|
||||
|
||||
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());
|
||||
|
||||
// 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(',');
|
||||
|
||||
@@ -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 },
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user