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:
@@ -56,10 +56,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Call AI model
|
- name: Call AI model
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
|
curl "https://models.github.ai/inference/chat/completions" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
@@ -67,7 +69,7 @@ jobs:
|
|||||||
"content": "Explain the concept of recursion."
|
"content": "Explain the concept of recursion."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"model": "gpt-4o"
|
"model": "openai/gpt-4o"
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user