File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Load environment variables from .env file
4
+ export $( grep -v ' ^#' .env | xargs)
5
+
6
+ # Set additional environment variables for guardrails configuration
7
+ export GUARDRAILS_METRICS=$GUARDRAILS_METRICS
8
+ export GUARDRAILS_REMOTE_INFERENCING=$GUARDRAILS_REMOTE_INFERENCING
9
+ export GUARDRAILS_API_KEY=$GUARDRAILS_API_KEY
10
+
11
+ # Run guardrails configure with the environment variables
12
+ guardrails configure << EOF
13
+ $GUARDRAILS_METRICS
14
+ $GUARDRAILS_REMOTE_INFERENCING
15
+ $GUARDRAILS_API_KEY
16
+ EOF
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Install packages from Guardrails Hub
4
+ guardrails hub install hub://guardrails/regex_match
5
+ guardrails hub install hub://guardrails/competitor_check
6
+ guardrails hub install hub://guardrails/toxic_language
You can’t perform that action at this time.
0 commit comments