improve custom model selection ux

This commit is contained in:
Daniel Avila 2023-03-06 21:12:36 -05:00
parent d93282640c
commit 6d757ff91f
6 changed files with 49 additions and 20 deletions

View file

@ -1,6 +1,7 @@
OPENAI_KEY=
PORT=3080
NODE_ENV=development
MONGO_URI="mongodb://127.0.0.1:27017/chatgpt-client"
# Change this to your MongoDB URI if different and I recommend appending chatgpt-clone
MONGO_URI="mongodb://127.0.0.1:27017/chatgpt-clone"
CHATGPT_TOKEN=""
BING_TOKEN=""

View file

@ -45,8 +45,6 @@ module.exports = {
},
updateCustomGpt: async ({ value, ...update }) => {
try {
console.log('updateCustomGpt', value, update);
const customGpt = await CustomGpt.findOne({ value }).exec();
if (!customGpt) {