Skip to content

Commit

Permalink
ignore translation notebook, use os.environ.get
Browse files Browse the repository at this point in the history
CalebCourier committed Nov 22, 2023
1 parent 7d10c16 commit d03e3ee
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -186,7 +186,7 @@ jobs:
run: |
cd docs/examples
for notebook in $(ls *.ipynb); do
if [ "$notebook" != "valid_chess_moves.ipynb" ]; then
if [ "$notebook" != "valid_chess_moves.ipynb" ] && [ "$notebook" != "translation_with_quality_check.ipynb" ]; then
poetry run jupyter nbconvert --to notebook --execute "$notebook"
if [ $? -ne 0 ]; then
echo "Error found in $notebook"
2 changes: 1 addition & 1 deletion guardrails/validators.py
Original file line number Diff line number Diff line change
@@ -811,7 +811,7 @@ def __init__(self, *args, **kwargs):
try:
from inspiredco.critique import Critique # type: ignore

self._critique = Critique(api_key=os.environ["INSPIREDCO_API_KEY"])
self._critique = Critique(api_key=os.environ.get("INSPIREDCO_API_KEY"))

except ImportError:
raise ImportError(

0 comments on commit d03e3ee

Please sign in to comment.