Skip to content

Commit 9a3719c

Browse files
committed
Rename env
1 parent 00d881d commit 9a3719c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/update-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 20
2121
env:
22-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
22+
PROD_OPENAI_API_KEY: ${{ secrets.PROD_OPENAI_API_KEY }}
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v3

docs/scripts/translate_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
}
3131

3232
# Initialize OpenAI client
33-
openai_client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
33+
api_key = os.getenv("PROD_OPENAI_API_KEY") or os.getenv("OPENAI_API_KEY")
34+
openai_client = OpenAI(api_key=api_key)
3435

3536
# Define dictionaries for translation control
3637
do_not_translate = [

0 commit comments

Comments
 (0)