Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia authored Jul 22, 2024
1 parent 56ea203 commit 038f793
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorials/litellm.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Let's add LLM Guard content mod for Anthropic API calls

Set the LLM Guard API Base in your environment

```env
LLM_GUARD_API_BASE = "http://0.0.0.0:8192" # deployed llm guard api
ANTHROPIC_API_KEY = "sk-..." # anthropic api key
```bash
export LLM_GUARD_API_BASE="http://0.0.0.0:8192" # deployed llm guard api
export ANTHROPIC_API_KEY="sk-..." # anthropic api key
```

Add `llmguard_moderations` as a callback
Expand All @@ -42,7 +42,7 @@ Expected results:
```
LLM Guard: Received response - {"sanitized_prompt": "hello world", "is_valid": true, "scanners": { "Regex": 0.0 }}
```
#### Turn on/off per key
### Turn on/off per key


**1. Update config**
Expand Down Expand Up @@ -92,7 +92,7 @@ curl --location 'http://0.0.0.0:4000/v1/chat/completions' \
}'
```

#### Turn on/off per request
### Turn on/off per request

**1. Update config**
```yaml
Expand Down

0 comments on commit 038f793

Please sign in to comment.