Skip to content

Commit e8e91ac

Browse files
docs: improve Grayswan guardrail documentation (#15875)
Co-authored-by: berri-teddy <[email protected]>
1 parent 3319bbf commit e8e91ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/my-website/docs/proxy/guardrails/grayswan.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Cygnal returns a `violation` score between `0` and `1` (higher means more likely
1818

1919
```bash
2020
export GRAYSWAN_API_KEY="your-grayswan-key"
21+
export GRAYSWAN_API_BASE="https://api.grayswan.ai"
2122
```
2223

2324
### 2. Configure `config.yaml`
@@ -37,6 +38,7 @@ guardrails:
3738
guardrail: grayswan
3839
mode: [pre_call, post_call] # monitor both input and output
3940
api_key: os.environ/GRAYSWAN_API_KEY
41+
api_base: os.environ/GRAYSWAN_API_BASE # optional
4042
optional_params:
4143
on_flagged_action: monitor # or "block"
4244
violation_threshold: 0.5 # score >= threshold is flagged

0 commit comments

Comments
 (0)