updated action to set OLLAMA_URL during replay mode

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-08-08 20:52:57 -04:00
parent a19c16428f
commit a151f5928e

View file

@ -39,6 +39,17 @@ runs:
if: ${{ inputs.provider == 'vllm' && inputs.inference-mode == 'record' }} if: ${{ inputs.provider == 'vllm' && inputs.inference-mode == 'record' }}
uses: ./.github/actions/setup-vllm uses: ./.github/actions/setup-vllm
- name: Set provider URLs for replay mode
if: ${{ inputs.inference-mode == 'replay' }}
shell: bash
run: |
# setting so providers get registered in replay mode
if [ "${{ inputs.provider }}" == "ollama" ]; then
echo "OLLAMA_URL=http://localhost:11434" >> $GITHUB_ENV
elif [ "${{ inputs.provider }}" == "vllm" ]; then
echo "VLLM_URL=http://localhost:8000/v1" >> $GITHUB_ENV
fi
- name: Build Llama Stack - name: Build Llama Stack
shell: bash shell: bash
run: | run: |