From 871c56073150490aa773726ededf2fcc38e220e2 Mon Sep 17 00:00:00 2001 From: Scott Davidson Date: Sun, 3 Nov 2024 23:02:48 +0000 Subject: [PATCH] Fixup workflows --- .github/workflows/test-pr.yml | 6 ++---- .github/workflows/update-dependencies.yml | 5 ++--- charts/azimuth-llm/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index 928190c..b3b8f1b 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -2,8 +2,7 @@ name: Test pull request on: - # We use pull_request_target so that dependabot-created workflows can run - pull_request_target: + pull_request: types: - opened - synchronize @@ -24,8 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: PR must be from a branch in the stackhpc/azimuth-llm repo - run: | - exit ${{ github.event.pull_request.head.repo.full_name == 'stackhpc/azimuth-llm' && '0' || '1' }} + run: exit ${{ github.event.pull_request.head.repo.full_name == 'stackhpc/azimuth-llm' && '0' || '1' }} publish_images: needs: [fail_on_remote] diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 96a7d98..c879627 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -10,7 +10,6 @@ jobs: contents: write pull-requests: write steps: - - name: Checkout the config repo uses: actions/checkout@v4 with: @@ -43,8 +42,8 @@ jobs: # Update yaml in-place with yq yq e -i '.api.image.version = strenv(NEW_VLLM_TAG)' $CHART_VALUES # Can't use in-place editing with jq - jq --indent 4 --arg tag $NEW_VLLM_TAG '.properties.api.properties.image.properties.version.default = $tag' chart/values.schema.json > chart/values.schema.json.new - mv chart/values.schema.json{.new,} + jq --indent 4 --arg tag $NEW_VLLM_TAG '.properties.api.properties.image.properties.version.default = $tag' charts/azimuth-llm/values.schema.json > charts/azimuth-llm/values.schema.json.new + mv charts/azimuth-llm/values.schema.json{.new,} fi - name: Create Pull Request diff --git a/charts/azimuth-llm/values.yaml b/charts/azimuth-llm/values.yaml index 253056c..b193c9d 100644 --- a/charts/azimuth-llm/values.yaml +++ b/charts/azimuth-llm/values.yaml @@ -92,6 +92,8 @@ ui: # available configuration options. appSettings: model_name: *model-name + model_instruction: | + You are a helpful AI assistant. Please respond appropriately. # Use local system fonts by default to avoid GDPR issues # with Gradio's defaults fonts which require fetching from # the Google fonts API. To restore default Gradio theme