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