Finetuning logging msg [review]

This commit is contained in:
Jimmy Royer 2024-09-18 17:42:03 -04:00
parent bbd546b889
commit 7f6dd34aa7
3 changed files with 6 additions and 3 deletions

View file

@ -325,7 +325,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
const res = response.choices[0].message?.content?.trim() || "{}";
return JSON.parse(res).reviews;
} catch (error) {
console.error("Error:", error);
console.error("Could not fetch AI response:", error);
return null;
}
}