1
0
mirror of synced 2025-12-21 10:57:10 -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
steps:
- name: Call AI model
run: |
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-d '{
"messages": [
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl "https://models.github.ai/inference/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{
"messages": [
{
"role": "user",
"content": "Explain the concept of recursion."
}
],
"model": "gpt-4o"
"model": "openai/gpt-4o"
}'
```