Created
August 4, 2023 19:41
-
-
Save cmpadden/b919f2a94b89dbbbc2dfb6c6b9a1fbe2 to your computer and use it in GitHub Desktop.
List OpenAI Models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| models=$(curl -s https://api.openai.com/v1/models -H "Authorization: Bearer $OPENAI_API_KEY") | |
| jq .data[].id <(echo "$models") | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment