Skip to content

Commit ef082fa

Browse files
committed
feat: init functionality to allow developer of chat function to set the env vars for aws lambda
1 parent 7dedfed commit ef082fa

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/dev.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ jobs:
7575
needs: test
7676
with:
7777
template-repository-name: "lambda-feedback/chat-function-boilerplate"
78+
# allow for developer to specify the environment variables that are used by the deployed AWS Lambda. Default to mock then admin can update.
79+
# environment-variables-mocks:
80+
# [
81+
# "OPENAI_API_KEY",
82+
# "OPENAI_MODEL",
83+
# "GOOGLE_AI_API_KEY",
84+
# "GOOGLE_AI_MODEL",
85+
# ]
7886
permissions:
7987
contents: read
8088
id-token: write

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ jobs:
7575
needs: test
7676
with:
7777
template-repository-name: "lambda-feedback/chat-function-boilerplate"
78+
# allow for developer to specify the environment variables that are used by the deployed AWS Lambda. Default to mock then admin can update.
79+
# environment-variables-mocks:
80+
# [
81+
# "OPENAI_API_KEY",
82+
# "OPENAI_MODEL",
83+
# "GOOGLE_AI_API_KEY",
84+
# "GOOGLE_AI_MODEL",
85+
# ]
7886
permissions:
7987
contents: read
8088
id-token: write

0 commit comments

Comments
 (0)