Skip to content

Commit

Permalink
Update gh-models.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto authored Sep 23, 2024
1 parent 6f75a59 commit 4d02ea5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/gh-models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ jobs:
steps:
- run: |
curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${{ secrets.GH_MODELS_PAT }}" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "${{ inputs.user-message }}"
}
],
"temperature": 0.5,
"top_p": 1.0,
"max_tokens": 1000,
"model": "gpt-4o-mini"
}' | jq
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${{ secrets.GH_MODELS_PAT }}" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "${{ inputs.user-message }}"
}
],
"temperature": 0.5,
"top_p": 1.0,
"max_tokens": 1000,
"model": "gpt-4o-mini"
}' | jq -c '.choices[0].message.content' >> $GITHUB_STEP_SUMMARY

0 comments on commit 4d02ea5

Please sign in to comment.