Skip to content

Commit ac79c92

Browse files
authored
Update main.yml
1 parent ca4f603 commit ac79c92

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,32 @@ jobs:
2727
with:
2828
babashka-version: 1.4.192
2929

30+
- name: debug key
31+
env:
32+
OPEN_AI_KEY: ${{secrets.OPEN_AI_KEY}}
33+
run: |
34+
curl https://api.openai.com/v1/chat/completions \
35+
-H "Content-Type: application/json" \
36+
-H "Authorization: Bearer $OPEN_AI_KEY" \
37+
-d '{
38+
"model": "gpt-3.5-turbo",
39+
"messages": [
40+
{
41+
"role": "system",
42+
"content": "You are a helpful assistant."
43+
},
44+
{
45+
"role": "user",
46+
"content": "Hello!"
47+
}
48+
]
49+
}'
50+
51+
3052
- name: render all tutorials
31-
run: bb render_all.clj
3253
env:
3354
OPEN_AI_KEY: ${{secrets.OPEN_AI_KEY}}
55+
run: bb render_all.clj
3456

3557

3658
- name: combine all tutorials

0 commit comments

Comments
 (0)