When I configure AI Code Reviewer to run against gpt-4-0125-preview (a turbo model), I get the following failure (sometimes on repeat, sometimes only once) in the AI Code Reviewer step every single time it runs →
Error: SyntaxError: Unexpected token ` in JSON at position 0
at JSON.parse (<anonymous>)
at /home/runner/work/_actions/freeedcom/ai-codereviewer/main/webpack:/open-ai-reviewer/lib/main.js:151:1
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/_actions/freeedcom/ai-codereviewer/main/webpack:/open-ai-reviewer/lib/main.js:28:1)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
This failure results in no comments being made on the pull request.
Making it run against gpt-4-1106-preview instead resolves the issue and the action works well.
When I configure AI Code Reviewer to run against
gpt-4-0125-preview(a turbo model), I get the following failure (sometimes on repeat, sometimes only once) in theAI Code Reviewerstep every single time it runs →This failure results in no comments being made on the pull request.
Making it run against
gpt-4-1106-previewinstead resolves the issue and the action works well.