From 96028eae9bb3e033a148818ff0356ac6831aa576 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 13 Nov 2023 17:46:54 +0100 Subject: [PATCH] feat: also log generated names --- src/routes/api/ai/name/[name]/+server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/api/ai/name/[name]/+server.ts b/src/routes/api/ai/name/[name]/+server.ts index be0ef17..73dec3d 100644 --- a/src/routes/api/ai/name/[name]/+server.ts +++ b/src/routes/api/ai/name/[name]/+server.ts @@ -11,6 +11,7 @@ export const GET: RequestHandler = async function ({ params }) { const res = await chat(prompt, { isList: true, temperature: 1 }); console.log(`[AI] Generated names for ${inputName} in ${performance.now() - a}ms`); + console.log(JSON.stringify(res, null, 2)); return json(res); }