Skip to content

Commit b4c5753

Browse files
committed
feat: add missing gpt 45 preview
1 parent 2e838c9 commit b4c5753

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

workflowai/core/domain/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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}

0 commit comments

Comments
 (0)