File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class Model(str, Enum):
3434 O1_PREVIEW_2024_09_12 = "o1-preview-2024-09-12"
3535 O1_MINI_LATEST = "o1-mini-latest"
3636 O1_MINI_2024_09_12 = "o1-mini-2024-09-12"
37+ GPT_45_PREVIEW_2025_02_27 = "gpt-4.5-preview-2025-02-27"
3738 GPT_4O_AUDIO_PREVIEW_2024_12_17 = "gpt-4o-audio-preview-2024-12-17"
3839 GPT_40_AUDIO_PREVIEW_2024_10_01 = "gpt-4o-audio-preview-2024-10-01"
3940 GPT_4_TURBO_2024_04_09 = "gpt-4-turbo-2024-04-09"
Original file line number Diff line number Diff line change 1+ import httpx
2+
3+ from workflowai .core .domain .model import Model
4+
5+
6+ async def test_model_exhaustive ():
7+ """Make sure the list of models is synchronized with the prod API"""
8+ async with httpx .AsyncClient () as client :
9+ response = await client .get ("https://run.workflowai.com/v1/models" )
10+ response .raise_for_status ()
11+ models : list [str ] = response .json ()
12+
13+ # Converting to a set of strings should not be needed
14+ # but it makes pytest errors prettier
15+ assert set (models ) == {m .value for m in Model }
You can’t perform that action at this time.
0 commit comments