Skip to content

Issue with basic reviewer (infinite loop while handling error) #9

@benjaminpillot

Description

@benjaminpillot

Hi there,

Hope it will help, returning to lattereview, I faced a "review error" using LiteLLM provider along with the GPT API (not able to parse the JSON file), but then fell into a "retrying infinite loop", which ended consuming API credits. Anyway, I dug further and found in the review_item function (line 253 to 275) in basic_reviewer.py that while num_tried is initialized to 0 (line 257), it is never iterated later, so it turns into an infinite loop. It is just a very little fix, but it may save people some time and money ;)

Thank you again for this very nice package.

Benjamin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions