Download scripts/check_openai.py from igerasimov/GCMD_Keyword_Classifier_MVP: direct link, hf CLI and curl.
- Browser
- Download file 162 Bytes
-
https://huggingface.co/spaces/igerasimov/GCMD_Keyword_Classifier_MVP/resolve/main/scripts/check_openai.py
- Command line
-
hf download hf://spaces/igerasimov/GCMD_Keyword_Classifier_MVP/scripts/check_openai.py
-
curl -L -o check_openai.py https://huggingface.co/spaces/igerasimov/GCMD_Keyword_Classifier_MVP/resolve/main/scripts/check_openai.py
162 Bytes
| from openai import OpenAI | |
| client = OpenAI() | |
| models = client.models.list() | |
| for m in models.data: | |
| if "gpt-5" in m.id or m.id == "gpt-4o": | |
| print(m.id) | |