tryolabs / restricttotopic

Validator for GuardrailsHub to check if a text is related with a topic.
Apache License 2.0
1 stars 5 forks source link

Auth Update #3

Closed CalebCourier closed 2 months ago

CalebCourier commented 7 months ago

This PR uses the api_key kwargs from the context when constructing the OpenAI client.

Related to https://github.com/guardrails-ai/validator-hub-ui/pull/9

This will allow users to provide their own credentials when using this validator via the hub playground.