1
0
mirror of synced 2025-12-23 03:44:00 -05:00

Fixing example workflow (#55277)

Co-authored-by: Christopher Schleiden <cschleiden@github.com>
Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com>
This commit is contained in:
Kate Catlin
2025-04-14 13:15:04 -07:00
committed by GitHub
parent 5fdeb88424
commit 3ecc69e1bf

View File

@@ -56,18 +56,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Call AI model - name: Call AI model
run: | env:
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-H "Content-Type: application/json" \ run: |
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ curl "https://models.github.ai/inference/chat/completions" \
-d '{ -H "Content-Type: application/json" \
"messages": [ -H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{
"messages": [
{ {
"role": "user", "role": "user",
"content": "Explain the concept of recursion." "content": "Explain the concept of recursion."
} }
], ],
"model": "gpt-4o" "model": "openai/gpt-4o"
}' }'
``` ```