Skip to content

do not allow remote inference #8

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

do not allow remote inference #8

wants to merge 4 commits into from

Conversation

zsimjee
Copy link
Contributor

@zsimjee zsimjee commented Apr 16, 2025

fixes #6

@zsimjee zsimjee requested a review from CalebCourier April 16, 2025 00:05
@@ -32,14 +32,9 @@ class BiasCheck(Validator):
def __init__(
self,
threshold: float = 0.9,
on_fail: Optional[Union[str, Callable]] = None,
**kwargs,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be a breaking change since on_fail is going fro a positional argument to a keyword only argument.

Comment on lines +118 to +121
predictions: List[PipelinePrediction] = self.classification_model(sentences) # type: ignore
for pred in predictions:
label = pred['label'] # type: ignore
score = pred['score'] # type: ignore
label = pred['label']
score = pred['score']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throws NotImplemented error when use_remote_inferencing is set in a user's .guardrailsrc file
2 participants