Skip to content

Commit 2f268e8

Browse files
Add Azure OpenAI API key to workflow and create .env file for configuration
1 parent 97baeff commit 2f268e8

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
API_TYPE="azure"
2+
GPT_MODEL="gpt-4o-mini"
3+
GPT_API_VERSION="2024-08-01-preview"
4+
EMBEDDING_MODEL="text-embedding-3-small"
5+
EMBEDDING_API_VERSION="2023-05-15"
6+
ENDPOINT="https://ai4se-openai.openai.azure.com/"
7+
AZURE_OPENAI_API_KEY="${AZURE_OPENAI_API_KEY}"

.github/workflows/docker-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build-and-push:
1010
runs-on: ubuntu-latest
1111

12+
env:
13+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
14+
1215
steps:
1316
- name: Checkout repository
1417
uses: actions/checkout@v3

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ __pycache__/
55
*.pyd
66
*.ipynb_checkpoints/
77

8-
# Environment files
9-
.env
108

119
# IDE-specific files
1210
.vscode/

0 commit comments

Comments
 (0)