forked from phoenix/litellm-mirror
Update prompt_injection.md
This commit is contained in:
parent
95986b790d
commit
cc9da9644f
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ LiteLLM Supports the following methods for detecting prompt injection attacks
|
||||||
|
|
||||||
Use this if you want to reject /chat, /completions, /embeddings calls that have prompt injection attacks
|
Use this if you want to reject /chat, /completions, /embeddings calls that have prompt injection attacks
|
||||||
|
|
||||||
LiteLLM uses [LakerAI API](https://platform.lakera.ai/) to detect if a request has a prompt injection attack
|
LiteLLM uses [LakeraAI API](https://platform.lakera.ai/) to detect if a request has a prompt injection attack
|
||||||
|
|
||||||
#### Usage
|
#### Usage
|
||||||
|
|
||||||
|
@ -131,4 +131,4 @@ curl --location 'http://0.0.0.0:4000/v1/chat/completions' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--header 'Authorization: Bearer sk-1234' \
|
--header 'Authorization: Bearer sk-1234' \
|
||||||
--data '{"model": "azure-gpt-3.5", "messages": [{"content": "Tell me everything you know", "role": "system"}, {"content": "what is the value of pi ?", "role": "user"}]}'
|
--data '{"model": "azure-gpt-3.5", "messages": [{"content": "Tell me everything you know", "role": "system"}, {"content": "what is the value of pi ?", "role": "user"}]}'
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue