From cb41259270c4141badff83ef3f77b33abfd3cf8a Mon Sep 17 00:00:00 2001 From: Sean Goedecke Date: Mon, 7 Apr 2025 22:26:14 +0000 Subject: [PATCH] add logging --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.ts b/src/main.ts index ce9cbe5..45fa1b9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -43,9 +43,14 @@ export async function run(): Promise { }) if (isUnexpected(response)) { + console.log('Unexpected response: ', response) throw response.body.error } + console.log('Response: ', response.body) + console.log('Choices: ', response.body.choices) + console.log('Message: ', response.body.choices[0].message) + const modelResponse: string | null = response.body.choices[0].message.content