From 2c76f763df4ada32e869ca4c4eaa344095478073 Mon Sep 17 00:00:00 2001 From: babaohuang Date: Thu, 14 Dec 2023 16:49:29 +0800 Subject: [PATCH] Update generate.ts --- src/pages/api/generate.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/api/generate.ts b/src/pages/api/generate.ts index 2164b0e0..cf14c428 100644 --- a/src/pages/api/generate.ts +++ b/src/pages/api/generate.ts @@ -35,6 +35,9 @@ export const post: APIRoute = async(context) => { }, }), { status: 401 }) } + + console.log('Received messages:', messages); + const initOptions = generatePayload(apiKey, messages) const response = await fetch(`${baseUrl}?key=${apiKey}`, initOptions).catch((err: Error) => {