Skip to content

Throws NotImplemented error when use_remote_inferencing is set in a user's .guardrailsrc file #6

Open
@CalebCourier

Description

@CalebCourier

This validator incorrectly implements _inference_local and calls _inference from it's validate method when it does not support remote inference.

Short term fix: directly call _inference_local from validate to avoid this issue altogether.

Long term fix: the base Validator class should try catch in these scenarios and call _inference_local if _inference_remote throws a NotImplemented error.

Side note: this validator also doesn't accept kwargs in its init function like it should preventing the user from easily specifying use_local=True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions