mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
docs fix aporia
This commit is contained in:
parent
cae51fc7fc
commit
47f69eb490
1 changed files with 4 additions and 7 deletions
|
@ -137,9 +137,8 @@ curl -i http://localhost:4000/v1/chat/completions \
|
|||
## Advanced
|
||||
### Control Guardrails per Project (API Key)
|
||||
|
||||
Use this to control what guardrails run per project. In this tutorial we only want the following guardrails to run for 1 project
|
||||
- `pre_call_guardrails`: ["aporia-pre-guard"]
|
||||
- `post_call_guardrails`: ["aporia-post-guard"]
|
||||
Use this to control what guardrails run per project. In this tutorial we only want the following guardrails to run for 1 project (API Key)
|
||||
- `guardrails`: ["aporia-pre-guard", "aporia"]
|
||||
|
||||
**Step 1** Create Key with guardrail settings
|
||||
|
||||
|
@ -151,8 +150,7 @@ curl -X POST 'http://0.0.0.0:4000/key/generate' \
|
|||
-H 'Authorization: Bearer sk-1234' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-D '{
|
||||
"pre_call_guardrails": ["aporia-pre-guard"],
|
||||
"post_call_guardrails": ["aporia"]
|
||||
"guardrails": ["aporia-pre-guard", "aporia"]
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
@ -166,8 +164,7 @@ curl --location 'http://0.0.0.0:4000/key/update' \
|
|||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"key": "sk-jNm1Zar7XfNdZXp49Z1kSQ",
|
||||
"pre_call_guardrails": ["aporia"],
|
||||
"post_call_guardrails": ["aporia"]
|
||||
"guardrails": ["aporia-pre-guard", "aporia"]
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue