Skip to content

Commit 3ecc69e

Browse files
KateCatlincschleidenSiaraMist
authored
Fixing example workflow (#55277)
Co-authored-by: Christopher Schleiden <[email protected]> Co-authored-by: Siara <[email protected]>
1 parent 5fdeb88 commit 3ecc69e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

content/github-models/integrating-ai-models-into-your-development-workflow.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,20 @@ jobs:
5656
runs-on: ubuntu-latest
5757
steps:
5858
- name: Call AI model
59-
run: |
60-
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
61-
-H "Content-Type: application/json" \
62-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
63-
-d '{
64-
"messages": [
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: |
62+
curl "https://models.github.ai/inference/chat/completions" \
63+
-H "Content-Type: application/json" \
64+
-H "Authorization: Bearer $GITHUB_TOKEN" \
65+
-d '{
66+
"messages": [
6567
{
6668
"role": "user",
6769
"content": "Explain the concept of recursion."
6870
}
6971
],
70-
"model": "gpt-4o"
72+
"model": "openai/gpt-4o"
7173
}'
7274
```
7375

0 commit comments

Comments
 (0)