Skip to content

Commit

Permalink
autosql: fix logging bug
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Sep 1, 2024
1 parent c35a5bb commit 32468ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-tabulator/autosql/web-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
Expand Down

0 comments on commit 32468ac

Please sign in to comment.