feat: endpoint setting mobile style.

feat: save and endpoint option works!
This commit is contained in:
Wentao Lyu 2023-04-01 23:27:44 +08:00
parent edaf7c3ad1
commit 46e3ef4049
8 changed files with 91 additions and 38 deletions

View file

@ -34,9 +34,10 @@ router.post('/', async (req, res) => {
model: req.body?.model || 'gpt-3.5-turbo',
chatGptLabel: req.body?.chatGptLabel || null,
promptPrefix: req.body?.promptPrefix || null,
temperature: req.body?.temperature || 0.8,
temperature: req.body?.temperature || 1,
top_p: req.body?.top_p || 1,
presence_penalty: req.body?.presence_penalty || 1
presence_penalty: req.body?.presence_penalty || 0,
frequency_penalty: req.body?.frequency_penalty || 0
};
console.log('ask log', {