Skip to content

Commit

Permalink
fix models api parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomviner committed Nov 6, 2023
1 parent bb4e78a commit 8ca2e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Scrape
run: |
export FILEPATH="openai/api/models.txt"
curl https://api.openai.com/v1/models -H "Authorization: Bearer ${{ secrets.OPENAI_API_KEY }}" | jq -r '.data | .[] | .root' | sort -n > ${FILEPATH}
curl https://api.openai.com/v1/models -H "Authorization: Bearer ${{ secrets.OPENAI_API_KEY }}" | jq -r '.data | .[] | .id' | sort -n > ${FILEPATH}
- name: Commit and push
run: |-
Expand Down

0 comments on commit 8ca2e4e

Please sign in to comment.