mirror of
https://github.com/alibaba/higress.git
synced 2026-05-26 05:37:25 +08:00
add default deny message (#1347)
Co-authored-by: Kent Dong <ch3cho@qq.com>
This commit is contained in:
@@ -29,8 +29,8 @@ Plugin Priority: `300`
|
||||
| `responseContentJsonPath` | string | optional | `choices.0.message.content` | Specify the jsonpath of the content to be detected in the response body |
|
||||
| `responseStreamContentJsonPath` | string | optional | `choices.0.delta.content` | Specify the jsonpath of the content to be detected in the streaming response body |
|
||||
| `denyCode` | int | optional | 200 | Response status code when the specified content is illegal |
|
||||
| `denyMessage` | string | optional | Drainage/non-streaming response in openai format, the answer content is the suggested answer from Alibaba Cloud content security
|
||||
| Response content when the specified content is illegal |
|
||||
| `denyMessage` | string | optional | Drainage/non-streaming response in openai format, the answer content is the suggested answer from Alibaba Cloud content security | Response content when the specified content is illegal |
|
||||
| `protocol` | string | optional | openai | protocol format, `openai` or `original` |
|
||||
|
||||
|
||||
## Examples of configuration
|
||||
|
||||
Reference in New Issue
Block a user