Skip to content

Prevent multiple description requests for same image #98

@brknkfr

Description

@brknkfr

When I tag the altbot (our altbot) very quickly twice (or maybe even three times) in a row without waiting for a result, it generates two descriptions for the same image as it normally takes a short while until a description is generated.

This could probably easily be stopped by adding a short, obligatory waiting interval (1 minute?) before triggering a new description for the same image (or the same user)? Or maybe there should be a check, if the altbot already generated a description for the same image?

Edit: Ah, I just overlooked the [rate_limit] setting max_requests_per_user_per_minute which I now set to 1. I hope this helps.

Even though, it's possible to generate two descriptions for the same image, this shouldn't be possible. I changed the subject.

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