Skip to content

Commit a151f59

Browse files
updated action to set OLLAMA_URL during replay mode
Signed-off-by: Francisco Javier Arceo <[email protected]>
1 parent a19c164 commit a151f59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/actions/setup-test-environment/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ runs:
3939
if: ${{ inputs.provider == 'vllm' && inputs.inference-mode == 'record' }}
4040
uses: ./.github/actions/setup-vllm
4141

42+
- name: Set provider URLs for replay mode
43+
if: ${{ inputs.inference-mode == 'replay' }}
44+
shell: bash
45+
run: |
46+
# setting so providers get registered in replay mode
47+
if [ "${{ inputs.provider }}" == "ollama" ]; then
48+
echo "OLLAMA_URL=http://localhost:11434" >> $GITHUB_ENV
49+
elif [ "${{ inputs.provider }}" == "vllm" ]; then
50+
echo "VLLM_URL=http://localhost:8000/v1" >> $GITHUB_ENV
51+
fi
52+
4253
- name: Build Llama Stack
4354
shell: bash
4455
run: |

0 commit comments

Comments
 (0)