mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 01:26:47 +00:00
Adding some logging
This commit is contained in:
parent
7d720b5447
commit
faa3cdc04d
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const jsonRes = res.substring(jsonStart, jsonEnd + 1);
|
const jsonRes = res.substring(jsonStart, jsonEnd + 1);
|
||||||
|
console.log("AI Response:", jsonRes);
|
||||||
return JSON.parse(jsonRes).reviews;
|
return JSON.parse(jsonRes).reviews;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error:", error);
|
console.error("Error:", error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue