mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
use fix prompt guards
This commit is contained in:
parent
970db68575
commit
a2516e3165
4 changed files with 30 additions and 1 deletions
|
|
@ -157,6 +157,29 @@ properties:
|
|||
enum:
|
||||
- llm
|
||||
- prompt
|
||||
prompt_guards:
|
||||
type: object
|
||||
properties:
|
||||
input_guards:
|
||||
type: object
|
||||
properties:
|
||||
jailbreak:
|
||||
type: object
|
||||
properties:
|
||||
on_exception:
|
||||
type: object
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
additionalProperties: false
|
||||
required:
|
||||
- message
|
||||
additionalProperties: false
|
||||
required:
|
||||
- on_exception
|
||||
additionalProperties: false
|
||||
required:
|
||||
- jailbreak
|
||||
additionalProperties: false
|
||||
required:
|
||||
- version
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
docker build -f Dockerfile .. -t katanemo/archgw
|
||||
1
build_filter_image.sh
Normal file
1
build_filter_image.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
docker build -f arch/Dockerfile . -t katanemo/archgw
|
||||
|
|
@ -35,6 +35,12 @@ llm_providers:
|
|||
system_prompt: |
|
||||
You are a helpful assistant.
|
||||
|
||||
prompt_guards:
|
||||
input_guards:
|
||||
jailbreak:
|
||||
on_exception:
|
||||
message: Looks like you're curious about my abilities, but I can only provide assistance for weather forecasting.
|
||||
|
||||
prompt_targets:
|
||||
- name: weather_forecast
|
||||
description: Check weather information for a given city.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue