Skip to content

Commit f56434e

Browse files
authored
Update main.yml
1 parent b77030d commit f56434e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,24 @@ jobs:
3030
- name: debug key
3131
env:
3232
OPEN_AI_KEY: ${{secrets.OPEN_AI_KEY}}
33-
run: echo $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+
3451
3552
- name: render all tutorials
3653
run: bb render_all.clj

0 commit comments

Comments
 (0)