This commit is contained in:
Zheng Kai
2023-08-21 10:49:03 +08:00
parent 866b2f569c
commit 911c1b9f5f
6 changed files with 26 additions and 22 deletions

View File

@@ -2,5 +2,6 @@
OPENAI_API_KEY="sk-rhjeVT1fkcuarBKnQR6ST$(cat ~/.config/openai)"
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer ${OPENAI_API_KEY}"
curl -s https://api.openai.com/v1/models \
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
| jq . -