-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON failure w/gpt-4-0125-preview. #56
Comments
I think that's probably an issue on OpenAI end generating valid JSON unfortunately. If you have insight on what is the actual return value, that would help! |
It looks like the action forces JSON Mode for the |
As an aside, what is the simplest way to debug and tell you what the actual return value is? |
I just put up #57, which seems likely to fix this issue. Very simple enhancement. |
Used
|
Yeah, because until #57 gets merged, this action only forces JSON mode with the Even with #57, I get occasional errors with |
Perhaps we can also extract the first "{" and its last "}" and parse it? (In the past, when there was no Additionally, there might be situations where there are not enough tokens. We could possibly use a retry mechanism where the output from the current request is used as input for a new request. |
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 Reviewer
step every single time it runs →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.The text was updated successfully, but these errors were encountered: