feat: only use OpenAI for tests.yaml if env variable is set (#1196)

This commit is contained in:
Sarah Wooders
2024-03-28 15:07:02 -07:00
committed by GitHub
parent 0f38548cb8
commit 0bf1624140

View File

@@ -33,7 +33,11 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run memgpt quickstart --backend openai
if [ -z "$OPENAI_API_KEY" ]; then
poetry run memgpt quickstart --backend openai
else
poetry run memgpt quickstart --backend openai
fi
- name: Run docker compose server
env: