Metadata-Version: 2.4
Name: quilr-litellm-guardrails
Version: 0.1.0
Summary: Quilr Guardrails Integration for LiteLLM
Author: Quilr
License: MIT
Project-URL: Homepage, https://quilr.ai
Keywords: litellm,guardrails,quilr,llm,ai-safety
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: litellm>=1.0.0

## Using Quilr Guardrails with Litellm

### Prerequisites

- Quilr API Key from Quilr guardrails (from either self hosted Quilr guardrails or Quilr hosted)

### Using with litellm

- Add the following to your litellm config.yaml file

```yaml
guardrails:
- guardrail_name: "quilr-input"
    litellm_params:
    guardrail: quilr_litellm_guardrails.QuilrGuardrail
    mode: "pre_call"

- guardrail_name: "quilr-output"
    litellm_params:
    guardrail: quilr_litellm_guardrails.QuilrGuardrail
    mode: "post_call"
```

- Set the following environment variables

```bash
QUILR_GUARDRAILS_KEY=sk-quilr-XXXXXXXXX
QUILR_GUARDRAILS_BASE_URL=QUILR GUARDRAILS BASE URL
```
