add logging

This commit is contained in:
Sean Goedecke
2025-04-07 22:26:14 +00:00
parent a57b52eccd
commit cb41259270
+5
View File
@@ -43,9 +43,14 @@ export async function run(): Promise<void> {
})
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