Merge branch 'staging' into neo-server

This commit is contained in:
Cohee
2024-04-11 21:47:10 +03:00
13 changed files with 894 additions and 642 deletions

View File

@ -399,7 +399,7 @@ router.post('/google/count', jsonParser, async function (req, res) {
accept: 'application/json',
'content-type': 'application/json',
},
body: JSON.stringify({ contents: convertGooglePrompt(req.body, String(req.query.model)) }),
body: JSON.stringify({ contents: convertGooglePrompt(req.body, String(req.query.model)).contents }),
};
try {
const key = readSecret(req.user.directories, SECRET_KEYS.MAKERSUITE);