Skip to content

Commit 5385a6d

Browse files
refactor(workflows): add LLM_PROVIDER input to deployment workflows for enhanced flexibility
1 parent 842637c commit 5385a6d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build-push-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
type: string
2828
default: "gpt-4"
29+
LLM_PROVIDER:
30+
description: "LLM provider to use for deployment"
31+
required: false
32+
type: string
33+
default: "openai"
2934

3035
jobs:
3136
build-and-test-client:
@@ -53,8 +58,8 @@ jobs:
5358
MONGO_DB_URL: ${{ secrets.MONGO_DB_URL }}
5459
MONGODB_DATABASE: ${{ secrets.MONGODB_DATABASE }}
5560
JWT_SECRET: ${{ secrets.JWT_SECRET }}
56-
LLM_PROVIDER: ${{ secrets.LLM_PROVIDER }}
5761
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
5862
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5963
with:
6064
OPENAI_MODEL: ${{ vars.OPENAI_MODEL }}
65+
LLM_PROVIDER: ${{ vars.LLM_PROVIDER }}

.github/workflows/deploy-to-kubernetes.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
required: false
99
type: string
1010
default: "gpt-4o"
11+
LLM_PROVIDER:
12+
required: false
13+
type: string
14+
default: "openai"
1115
secrets:
1216
KUBECONFIG:
1317
required: true
@@ -17,8 +21,6 @@ on:
1721
required: true
1822
JWT_SECRET:
1923
required: true
20-
LLM_PROVIDER:
21-
required: true
2224
OPENAI_BASE_URL:
2325
required: true
2426
OPENAI_API_KEY:
@@ -71,7 +73,7 @@ jobs:
7173
--set secrets.mongo-db-url="${{ secrets.MONGO_DB_URL }}" \
7274
--set secrets.mongodb-database="${{ secrets.MONGODB_DATABASE }}" \
7375
--set secrets.jwt-secret="${{ secrets.JWT_SECRET }}" \
74-
--set secrets.llm-provider="${{ secrets.LLM_PROVIDER }}" \
76+
--set secrets.llm-provider="${{ inputs.LLM_PROVIDER }}" \
7577
--set secrets.openai-base-url="${{ secrets.OPENAI_BASE_URL }}" \
7678
--set secrets.openai-api-key="${{ secrets.OPENAI_API_KEY }}" \
7779
--set secrets.openai-model="${{ inputs.OPENAI_MODEL }}" \

0 commit comments

Comments
 (0)