Skip to content
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

dont init validators init if intend to use api #909

Merged

Conversation

dtam
Copy link
Contributor

@dtam dtam commented Jul 11, 2024

updates to not init validators if we intend to use the api. they are already inited on the server. the guard(/parse( in this case should essentially be a passthrough of that call to the server so it wont need the validators

this fixes validator output that shouldnt be experienced in the client api use case

to verify
https://github.com/guardrails-ai/guardrails-test/tree/main/validation_deep_dive/part3

Run config.py and part3.ipynb

@dtam dtam requested a review from zsimjee July 11, 2024 17:54
@zsimjee zsimjee merged commit b2c48b5 into 0.5.0-dev Jul 11, 2024
12 checks passed
@zsimjee zsimjee deleted the dtam/dont_init_validators_if_we_intend_to_use_api branch July 11, 2024 20:40
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.

2 participants