We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fdeb88 commit 3ecc69eCopy full SHA for 3ecc69e
content/github-models/integrating-ai-models-into-your-development-workflow.md
@@ -56,18 +56,20 @@ jobs:
56
runs-on: ubuntu-latest
57
steps:
58
- 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": [
+ 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" \
65
+ -d '{
66
+ "messages": [
67
{
68
"role": "user",
69
"content": "Explain the concept of recursion."
70
}
71
],
- "model": "gpt-4o"
72
+ "model": "openai/gpt-4o"
73
}'
74
```
75
0 commit comments