mirror of
https://github.com/hoshikawa2/nemo_guardrails_ci_cd.git
synced 2026-07-09 16:24:20 +00:00
first commit
This commit is contained in:
16
config/config.yml
Normal file
16
config/config.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
models:
|
||||
- type: main
|
||||
engine: openai
|
||||
model: gpt-4o-mini
|
||||
parameters:
|
||||
api_key: ${OPENAI_API_KEY}
|
||||
base_url: ${OPENAI_BASE_URL:-https://api.openai.com/v1}
|
||||
|
||||
rails:
|
||||
input:
|
||||
flows:
|
||||
- self check input
|
||||
|
||||
output:
|
||||
flows:
|
||||
- self check output
|
||||
5
config/input.co
Normal file
5
config/input.co
Normal file
@@ -0,0 +1,5 @@
|
||||
define flow self check input
|
||||
$allowed = execute check_input
|
||||
if not $allowed
|
||||
bot refuse to respond
|
||||
stop
|
||||
5
config/output.co
Normal file
5
config/output.co
Normal file
@@ -0,0 +1,5 @@
|
||||
define flow self check output
|
||||
$allowed = execute check_output
|
||||
if not $allowed
|
||||
bot refuse to respond
|
||||
stop
|
||||
Reference in New Issue
Block a user