diff --git a/db-tabulator/autosql/web-endpoint.ts b/db-tabulator/autosql/web-endpoint.ts index d0f67d2..12c7c70 100644 --- a/db-tabulator/autosql/web-endpoint.ts +++ b/db-tabulator/autosql/web-endpoint.ts @@ -30,7 +30,7 @@ router.post('/generate', async function (req, res, next) { }) const sql = response.choices[0].message.content const logEntry = { - prompt: req.query.prompt, + prompt: req.body.prompt, response: sql.replace(/\s+/g, ' ') } log(`[S] AutoSQL result ${JSON.stringify(logEntry, null, 2)}`);